From 6e5f5f1720888dc2be9f6f47af7e253d90cbe0fa Mon Sep 17 00:00:00 2001 From: Tom Feist Date: Tue, 26 Oct 2010 00:43:53 +0100 Subject: bug fix: % in :register print is now escaped to avoid printing colours --- vim-mode/vim_mode.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 { -- cgit v1.2.3