Permalink
Browse files

Fix unescaping of \a

  • Loading branch information...
tpope committed Aug 10, 2010
1 parent a59a121 commit 0dd16673515604a38d18dae3226833508136ed58
Showing with 1 addition and 1 deletion.
  1. +1 −1 plugin/unimpaired.vim
View
@@ -89,7 +89,7 @@ function! s:StringEncode(str)
endfunction
function! s:StringDecode(str)
- let map = {'n': "\n", 'r': "\r", 't': "\t", 'b': "\b", 'f': "\f", 'e': "\e", 'a': "\007", 'v': "\013", '"': '"', '\': '\', "'": "'"}
+ let map = {'n': "\n", 'r': "\r", 't': "\t", 'b': "\b", 'f': "\f", 'e': "\e", 'a': "\001", 'v': "\013", '"': '"', '\': '\', "'": "'"}
let str = a:str
if str =~ '^\s*".\{-\}\\\@<!\%(\\\\\)*"\s*\n\=$'
let str = substitute(substitute(str,'^\s*\zs"','',''),'"\ze\s*\n\=$','','')

0 comments on commit 0dd1667

Please sign in to comment.