mirror of
https://github.com/Raimondi/delimitMate.git
synced 2026-08-13 03:11:04 +08:00
Fix #16 Finish() didn't reset the char buffer.
This commit is contained in:
@@ -490,6 +490,8 @@ function! delimitMate#Finish() " {{{
|
||||
let len = len(b:delimitMate_buffer)
|
||||
if len > 0
|
||||
let buffer = join(b:delimitMate_buffer, '')
|
||||
" Reset buffer:
|
||||
let b:delimitMate_buffer = []
|
||||
let line = getline('.')
|
||||
let col = col('.') -2
|
||||
"echom 'col: ' . col . '-' . line[:col] . "|" . line[col+len+1:] . '%' . buffer
|
||||
|
||||
Reference in New Issue
Block a user