diff options
author | Tom Feist <shabble@metavore.org> | 2010-10-15 19:37:45 +0000 |
---|---|---|
committer | Tom Feist <shabble@metavore.org> | 2010-10-15 19:37:45 +0000 |
commit | 9d3443f57e763caf71429745d11d24c6bf48e59f (patch) | |
tree | 1e58ebf998e7e3884e5446876d457b00dc337966 | |
parent | vim_mode: Fix 'start_cmd' on startup/reload. (diff) | |
download | irssi-scripts-9d3443f57e763caf71429745d11d24c6bf48e59f.tar.gz irssi-scripts-9d3443f57e763caf71429745d11d24c6bf48e59f.zip |
vim_mode: resolved backslash display issue in vim status item
-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 03d214f..3cdae0b 100644 --- a/vim-mode/vim_mode.pl +++ b/vim-mode/vim_mode.pl @@ -2032,7 +2032,9 @@ sub vim_mode_cb { } else { $mode_str = '%_Command%_'; if ($partial_command) { - $mode_str .= " ($partial_command)"; + my $p_copy = $partial_command; + $p_copy =~ s/\\/\\\\\\\\/g; + $mode_str .= " ($p_copy)"; } } $sb_item->default_handler($get_size_only, "{sb $mode_str}", '', 0); |