]> git.lyx.org Git - features.git/commitdiff
Revert "No need to set background color of a newly created branch."
authorJuergen Spitzmueller <spitz@lyx.org>
Sat, 30 Jan 2021 08:16:15 +0000 (09:16 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Sat, 30 Jan 2021 08:16:15 +0000 (09:16 +0100)
This breaks color initialization with new branches in dark mode.

This reverts commit 5145694cd067e221a661e0d6c7dce4ed5ca22e37.

src/Buffer.cpp

index baed1d4239b2e6038ce312fb8981e1cdd3927786..c46dab75ba4b45ec1389786f7db7bd227fb7c3d2 100644 (file)
@@ -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);
                        }