mirror of
https://github.com/Raimondi/delimitMate.git
synced 2025-12-20 19:31:12 +08:00
Attempt to fix CR expansion.
This commit is contained in:
@@ -396,8 +396,11 @@ function! delimitMate#ExpandReturn() "{{{
|
|||||||
if delimitMate#WithinEmptyPair()
|
if delimitMate#WithinEmptyPair()
|
||||||
" Expand:
|
" Expand:
|
||||||
call delimitMate#FlushBuffer()
|
call delimitMate#FlushBuffer()
|
||||||
|
let char = delimitMate#GetCharUnderCursor()
|
||||||
"return "\<Esc>a\<CR>x\<CR>\<Esc>k$\"_xa"
|
"return "\<Esc>a\<CR>x\<CR>\<Esc>k$\"_xa"
|
||||||
return "\<Esc>a\<CR>\<UP>\<Esc>o"
|
"return "\<Esc>a\<CR>\<UP>\<Esc>o"
|
||||||
|
call feedkeys("\<Esc>a\<Del>\<Esc>ox\<BS>\<CR>".char."\<Esc>kA", 't')
|
||||||
|
return ''
|
||||||
else
|
else
|
||||||
return "\<CR>"
|
return "\<CR>"
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user