aboutsummaryrefslogtreecommitdiffstats
path: root/vim-mode
diff options
context:
space:
mode:
authorSimon Ruderich <simon@ruderich.org>2010-10-15 21:57:42 +0000
committerSimon Ruderich <simon@ruderich.org>2010-10-15 21:57:42 +0000
commite3f47424682bac05fcc6cd65d1e9174d0f902dda (patch)
treefc33970aa0b6b34b6be4ce072c5746c85810842b /vim-mode
parentvim_mode: Correctly display partial commands with ^X notation. (diff)
downloadirssi-scripts-e3f47424682bac05fcc6cd65d1e9174d0f902dda.tar.gz
irssi-scripts-e3f47424682bac05fcc6cd65d1e9174d0f902dda.zip
vim_mode: Hopefully fix undo/redo with 'start_cmd'.
Diffstat (limited to 'vim-mode')
-rw-r--r--vim-mode/vim_mode.pl4
1 files changed, 3 insertions, 1 deletions
diff --git a/vim-mode/vim_mode.pl b/vim-mode/vim_mode.pl
index 6cbf617..045ae80 100644
--- a/vim-mode/vim_mode.pl
+++ b/vim-mode/vim_mode.pl
@@ -2776,10 +2776,12 @@ sub delete_map {
sub _commit_line {
_update_mode(M_INS);
- _reset_undo_buffer('', 0);
+
# separate from call above as _update_mode() does additional internal work
# and we need to make sure it gets correctly called.
_update_mode(M_CMD) if $settings->{start_cmd}->{value};
+
+ _reset_undo_buffer('', 0);
}
sub _input {