diff options
author | Tom Feist <shabble@metavore.org> | 2010-09-30 20:05:20 +0000 |
---|---|---|
committer | Tom Feist <shabble@metavore.org> | 2010-09-30 20:05:20 +0000 |
commit | 1d8e4518d0731e240b65b6010c1457522c0302da (patch) | |
tree | 007f15793d380f2c37bb8c8996a4d5844a637395 /vim-mode/vim_mode.pl | |
parent | rename $window to avoid conflict in cmd_ex_command (diff) | |
download | irssi-scripts-1d8e4518d0731e240b65b6010c1457522c0302da.tar.gz irssi-scripts-1d8e4518d0731e240b65b6010c1457522c0302da.zip |
thanks to rudi_s for pointing out what a ternary operator looks like.
Diffstat (limited to 'vim-mode/vim_mode.pl')
-rw-r--r-- | vim-mode/vim_mode.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vim-mode/vim_mode.pl b/vim-mode/vim_mode.pl index c4c4740..1da40c0 100644 --- a/vim-mode/vim_mode.pl +++ b/vim-mode/vim_mode.pl @@ -838,7 +838,7 @@ sub cmd_ex_command { my $rep_fun = sub { $replace }; my $line = _input(); - my @re_flags = split '', defined $flags:$flags:''; + my @re_flags = split '', defined $flags?$flags:''; if (scalar grep { $_ eq 'i' } @re_flags) { $search = '(?i)' . $search; |