aboutsummaryrefslogtreecommitdiffstats
path: root/vim-mode
diff options
context:
space:
mode:
Diffstat (limited to '')
-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 f7705ed..0263876 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 '', $flags // '';
+ my @re_flags = split '', defined $flags:$flags:'';
if (scalar grep { $_ eq 'i' } @re_flags) {
$search = '(?i)' . $search;