aboutsummaryrefslogtreecommitdiffstats
path: root/vim-mode
diff options
context:
space:
mode:
authorTom Feist <shabble@metavore.org>2010-10-25 23:43:53 +0000
committerTom Feist <shabble@metavore.org>2010-10-25 23:43:53 +0000
commit6e5f5f1720888dc2be9f6f47af7e253d90cbe0fa (patch)
treed688cf2c169eabf25e624b4f045e11df96765566 /vim-mode
parentuberprompt: oops, got the setting backwards. On enables replaces now. (diff)
downloadirssi-scripts-6e5f5f1720888dc2be9f6f47af7e253d90cbe0fa.tar.gz
irssi-scripts-6e5f5f1720888dc2be9f6f47af7e253d90cbe0fa.zip
bug fix: % in :register print is now escaped to avoid printing colours
Diffstat (limited to 'vim-mode')
-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 {