From c83526c3ca06175603a50ffd7089689012482a4f Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Sat, 30 Jan 2021 09:16:15 +0100 Subject: [PATCH] Revert "No need to set background color of a newly created branch." This breaks color initialization with new branches in dark mode. This reverts commit 5145694cd067e221a661e0d6c7dce4ed5ca22e37. --- src/Buffer.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Buffer.cpp b/src/Buffer.cpp index baed1d4239..c46dab75ba 100644 --- a/src/Buffer.cpp +++ b/src/Buffer.cpp @@ -2943,6 +2943,8 @@ void Buffer::dispatch(FuncRequest const & func, DispatchResult & dr) } else { undo().recordUndoBufferParams(CursorData()); branch_list.add(branch_name); + branch = branch_list.find(branch_name); + branch->setColors("background", "background"); dr.setError(false); dr.screenUpdate(Update::Force); } -- 2.39.2