diff options
author | Tom Feist <shabble@metavore.org> | 2010-10-25 23:43:53 +0000 |
---|---|---|
committer | Tom Feist <shabble@metavore.org> | 2010-10-25 23:43:53 +0000 |
commit | 6e5f5f1720888dc2be9f6f47af7e253d90cbe0fa (patch) | |
tree | d688cf2c169eabf25e624b4f045e11df96765566 /vim-mode | |
parent | uberprompt: oops, got the setting backwards. On enables replaces now. (diff) | |
download | irssi-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.pl | 4 |
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 { |