Skip to content

Commit

Permalink
Fix use of multibyte chars.
Browse files Browse the repository at this point in the history
  • Loading branch information
Raimondi committed Aug 15, 2010
1 parent 0441a03 commit 58d63b4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions autoload/delimitMate.vim
Expand Up @@ -452,15 +452,16 @@ function! delimitMate#Finish() " {{{
let len = len(b:_l_delimitMate_buffer)
if len > 0
let buffer = join(b:_l_delimitMate_buffer, '')
let len2 = len(buffer)
" Reset buffer:
let b:_l_delimitMate_buffer = []
let line = getline('.')
let col = col('.') -2
"echom 'col: ' . col . '-' . line[:col] . "|" . line[col+len+1:] . '%' . buffer
if col < 0
call setline('.', line[col+len+1:])
call setline('.', line[col+len2+1:])
else
call setline('.', line[:col] . line[col+len+1:])
call setline('.', line[:col] . line[col+len2+1:])
endif
let i = 1
let lefts = "\<Left>"
Expand Down

0 comments on commit 58d63b4

Please sign in to comment.