diff options
author | Simon Ruderich <simon@ruderich.org> | 2010-10-15 21:57:42 +0000 |
---|---|---|
committer | Simon Ruderich <simon@ruderich.org> | 2010-10-15 21:57:42 +0000 |
commit | e3f47424682bac05fcc6cd65d1e9174d0f902dda (patch) | |
tree | fc33970aa0b6b34b6be4ce072c5746c85810842b /vim-mode | |
parent | vim_mode: Correctly display partial commands with ^X notation. (diff) | |
download | irssi-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.pl | 4 |
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 { |