Steps to reproduce
-
delete a line with 'dd'
The listener_add() callback receives:
{"lnum":1,"col":1,"added":-1,"end":2}
-
undo with 'u'
The listener_add() callback receives:
{"lnum":1,"col":1,"added":-1,"end":2}
{"lnum":1,"col":1,"added":1,"end":1}
Expected behaviour
The undo operation should NOT report a line deleted (2nd line of original file).
The net number of added & deleted lines should be zero. In this case, the net is 1 deleted line.
Routines tracking changes will erroneous delete the 2nd line of the original file.
Version of Vim
VIM - Vi IMproved 9.2 (2026 Feb 14, compiled Feb 14 2026 12:17:29)
Environment
Operating System: Windows 11
Logs and stack traces
Steps to reproduce
delete a line with 'dd'
The listener_add() callback receives:
{"lnum":1,"col":1,"added":-1,"end":2}undo with 'u'
The listener_add() callback receives:
{"lnum":1,"col":1,"added":-1,"end":2}{"lnum":1,"col":1,"added":1,"end":1}Expected behaviour
The undo operation should NOT report a line deleted (2nd line of original file).
The net number of added & deleted lines should be zero. In this case, the net is 1 deleted line.
Routines tracking changes will erroneous delete the 2nd line of the original file.
Version of Vim
VIM - Vi IMproved 9.2 (2026 Feb 14, compiled Feb 14 2026 12:17:29)
Environment
Operating System: Windows 11
Logs and stack traces