mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 8.2.4379: an empty change is reported to a listener
Problem: An empty change is reported to a listener. Solution: Do not report an empty change. (closes #9768) Remove unused return value.
This commit is contained in:
@@ -2828,8 +2828,8 @@ u_undoredo(int undo)
|
||||
if (curbuf->b_op_end.lnum > top + oldsize)
|
||||
curbuf->b_op_end.lnum += newsize - oldsize;
|
||||
}
|
||||
|
||||
changed_lines(top + 1, 0, bot, newsize - oldsize);
|
||||
if (oldsize > 0 || newsize > 0)
|
||||
changed_lines(top + 1, 0, bot, newsize - oldsize);
|
||||
|
||||
// set '[ and '] mark
|
||||
if (top + 1 < curbuf->b_op_start.lnum)
|
||||
|
Reference in New Issue
Block a user