aboutsummaryrefslogtreecommitdiffstats
path: root/vim-mode
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--vim-mode/vim_mode.pl4
1 files changed, 3 insertions, 1 deletions
diff --git a/vim-mode/vim_mode.pl b/vim-mode/vim_mode.pl
index cce0700..7f9402b 100644
--- a/vim-mode/vim_mode.pl
+++ b/vim-mode/vim_mode.pl
@@ -1711,7 +1711,9 @@ sub ex_registers {
foreach my $key (sort @regs) {
next if $key eq '_'; # skip black hole
if (defined $registers->{$key}) {
- $active_window->print("register $key: $registers->{$key}");
+ my $register_val = $registers->{$key};
+ $register_val =~ s/%/%%/g;
+ $active_window->print("register $key: $register_val");
}
}
} else {