From 1d8e4518d0731e240b65b6010c1457522c0302da Mon Sep 17 00:00:00 2001 From: Tom Feist Date: Thu, 30 Sep 2010 21:05:20 +0100 Subject: thanks to rudi_s for pointing out what a ternary operator looks like. --- vim-mode/vim_mode.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vim-mode') 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; -- cgit v1.2.3