mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 22:48:34 +00:00
buffer: move BUFEMPTY to a function
This commit is contained in:
@@ -2431,7 +2431,7 @@ static void u_undoredo(int undo, bool do_buf_event)
|
||||
|
||||
curhead->uh_entry = newlist;
|
||||
curhead->uh_flags = new_flags;
|
||||
if ((old_flags & UH_EMPTYBUF) && BUFEMPTY(curbuf)) {
|
||||
if ((old_flags & UH_EMPTYBUF) && buf_is_empty(curbuf)) {
|
||||
curbuf->b_ml.ml_flags |= ML_EMPTY;
|
||||
}
|
||||
if (old_flags & UH_CHANGED) {
|
||||
|
Reference in New Issue
Block a user