From e1a07cf133508b6cae049ded0b6b37b52e6fda47 Mon Sep 17 00:00:00 2001 From: Tom Feist Date: Fri, 15 Oct 2010 20:42:03 +0100 Subject: vim_mode: escaped % in _set_prompt so uberprompt displays them correctly. --- vim-mode/vim_mode.pl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vim-mode/vim_mode.pl b/vim-mode/vim_mode.pl index 3cdae0b..cce0700 100644 --- a/vim-mode/vim_mode.pl +++ b/vim-mode/vim_mode.pl @@ -2897,6 +2897,11 @@ sub _set_prompt { my $msg = shift; # add a leading space unless we're trying to clear it entirely. $msg = ' ' . $msg if length $msg; + + # escape % symbols. This prevents any _set_prompt calls from using + # colouring sequences. + $msg =~ s/%/%%/g; + Irssi::signal_emit('change prompt', $msg, 'UP_INNER'); } -- cgit v1.2.3