Permalink
Browse files

Fix unescaping of "\a"

  • Loading branch information...
1 parent 360338d commit a59a121ee6fd7337a5b3a115aba32de6fbf5f0b2 @tpope committed Jun 13, 2010
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': "\001", 'v': "\013", '"': '"', '\': '\', "'": "'"}
+ let map = {'n': "\n", 'r': "\r", 't': "\t", 'b': "\b", 'f': "\f", 'e': "\e", 'a': "\007", '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 a59a121

Please sign in to comment.