diff options
author | Simon Ruderich <simon@ruderich.org> | 2010-09-29 19:31:33 +0000 |
---|---|---|
committer | Simon Ruderich <simon@ruderich.org> | 2010-09-29 19:31:33 +0000 |
commit | a2b9673ec108c5f66e6c2d8a8361aac5817f3a65 (patch) | |
tree | 20f54937e375f8769d59fa10db04bae8d2dcaaae | |
parent | vim_mode: Support repeat for c, like c3wxxx<esc> . (diff) | |
download | irssi-scripts-a2b9673ec108c5f66e6c2d8a8361aac5817f3a65.tar.gz irssi-scripts-a2b9673ec108c5f66e6c2d8a8361aac5817f3a65.zip |
vim_mode: Fix d at the end of the line.
Diffstat (limited to '')
-rw-r--r-- | vim-mode/vim_mode.pl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/vim-mode/vim_mode.pl b/vim-mode/vim_mode.pl index acc4f26..847ce6e 100644 --- a/vim-mode/vim_mode.pl +++ b/vim-mode/vim_mode.pl @@ -340,6 +340,9 @@ sub cmd_operator_d { } _input($input); + # Prevent moving after the text when we delete the last character. + $pos-- if $pos == length($input); + # Move the cursor at the right position. _input_pos($pos); } |