mirror of
https://github.com/Raimondi/delimitMate.git
synced 2025-12-06 12:44:27 +08:00
Attempt to fix CR expansion.
This commit is contained in:
@@ -396,8 +396,11 @@ function! delimitMate#ExpandReturn() "{{{
|
||||
if delimitMate#WithinEmptyPair()
|
||||
" Expand:
|
||||
call delimitMate#FlushBuffer()
|
||||
let char = delimitMate#GetCharUnderCursor()
|
||||
"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
|
||||
return "\<CR>"
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user