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 5145694cd0.
This commit is contained in:
Juergen Spitzmueller 2021-01-30 09:16:15 +01:00
parent 9dd71b9e4a
commit c83526c3ca

View 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);
}