diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2016-11-12 13:32:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-12 13:32:48 +0100 |
commit | 598f5af58b21747ea9d6dc0a7d846cb85ae52824 (patch) | |
tree | 75ce4e63e1300f33a13a607a9cc6cbb1a60b9a80 /src/nvim/undo.c | |
parent | 84eed76b552405b0aef442e3eddc7f29f484b2cd (diff) | |
parent | ae9a3d3b9984ef8bf9cec1a8738f29821951c5a5 (diff) | |
download | rneovim-598f5af58b21747ea9d6dc0a7d846cb85ae52824.tar.gz rneovim-598f5af58b21747ea9d6dc0a7d846cb85ae52824.tar.bz2 rneovim-598f5af58b21747ea9d6dc0a7d846cb85ae52824.zip |
Merge #5582 from justinmk/icm
'inccommand': Support :smagic/:snomagic. Less jumping around.
Diffstat (limited to 'src/nvim/undo.c')
-rw-r--r-- | src/nvim/undo.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/undo.c b/src/nvim/undo.c index 2f4317980a..d6428d63f7 100644 --- a/src/nvim/undo.c +++ b/src/nvim/undo.c @@ -1685,7 +1685,8 @@ void u_redo(int count) u_doit(count, false); } -/// undo, and remove the undo branch from the undo tree. +/// Undo and remove the branch from the undo tree. +/// Also moves the cursor (as a "normal" undo would). bool u_undo_and_forget(int count) { if (curbuf->b_u_synced == false) { |