Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix unescaping of \a

  • Loading branch information...
commit 0dd16673515604a38d18dae3226833508136ed58 1 parent a59a121
@tpope authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  plugin/unimpaired.vim
View
2  plugin/unimpaired.vim
@@ -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\=$','','')
Please sign in to comment.
Something went wrong with that request. Please try again.