From e9c166868f41344653b116f1cb596cc6a2598dbf Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Mon, 4 Oct 2010 20:50:12 +0200 Subject: vim_mode: Use elsif where possible. --- vim-mode/vim_mode.pl | 6 ++---- 1 file 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'; -- cgit v1.2.3