diff options
author | Simon Ruderich <simon@ruderich.org> | 2010-10-04 18:50:12 +0000 |
---|---|---|
committer | Simon Ruderich <simon@ruderich.org> | 2010-10-04 18:50:12 +0000 |
commit | e9c166868f41344653b116f1cb596cc6a2598dbf (patch) | |
tree | 33859ce5565f552bf2cac9a7ede403a403e0fdf6 | |
parent | vim_mode: Minor comment fixes. (diff) | |
download | irssi-scripts-e9c166868f41344653b116f1cb596cc6a2598dbf.tar.gz irssi-scripts-e9c166868f41344653b116f1cb596cc6a2598dbf.zip |
vim_mode: Use elsif where possible.
Diffstat (limited to '')
-rw-r--r-- | vim-mode/vim_mode.pl | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/vim-mode/vim_mode.pl b/vim-mode/vim_mode.pl index cc798f5..16247cf 100644 --- a/vim-mode/vim_mode.pl +++ b/vim-mode/vim_mode.pl @@ -1650,9 +1650,8 @@ sub handle_command_cmd { print "Changing s to cl" if DEBUG; $char = 'l'; $operator = 'c'; - } # S is an alias for cc. - if (!$movement and !$operator and $char eq 'S') { + } elsif (!$movement and !$operator and $char eq 'S') { print "Changing S to cc" if DEBUG; $char = 'c'; $operator = 'c'; @@ -1722,9 +1721,8 @@ sub handle_command_cmd { } elsif ($operator and ($char eq 'j' or $char eq 'k')) { print "Invalid operator/char: $operator $char" if DEBUG; $skip = 1; - } # C and D force the matching operator - if ($char eq 'C') { + } elsif ($char eq 'C') { $operator = 'c'; } elsif ($char eq 'D') { $operator = 'd'; |