aboutsummaryrefslogtreecommitdiffstats
path: root/vim-mode
diff options
context:
space:
mode:
authorSimon Ruderich <simon@ruderich.org>2010-10-04 18:50:12 +0000
committerSimon Ruderich <simon@ruderich.org>2010-10-04 18:50:12 +0000
commite9c166868f41344653b116f1cb596cc6a2598dbf (patch)
tree33859ce5565f552bf2cac9a7ede403a403e0fdf6 /vim-mode
parentvim_mode: Minor comment fixes. (diff)
downloadirssi-scripts-e9c166868f41344653b116f1cb596cc6a2598dbf.tar.gz
irssi-scripts-e9c166868f41344653b116f1cb596cc6a2598dbf.zip
vim_mode: Use elsif where possible.
Diffstat (limited to 'vim-mode')
-rw-r--r--vim-mode/vim_mode.pl6
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';