aboutsummaryrefslogtreecommitdiffstats
path: root/vim-mode/vim_mode.pl
diff options
context:
space:
mode:
authorTom Feist <shabble@metavore.org>2010-09-30 20:05:20 +0000
committerTom Feist <shabble@metavore.org>2010-09-30 20:05:20 +0000
commit1d8e4518d0731e240b65b6010c1457522c0302da (patch)
tree007f15793d380f2c37bb8c8996a4d5844a637395 /vim-mode/vim_mode.pl
parentrename $window to avoid conflict in cmd_ex_command (diff)
downloadirssi-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.pl2
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;