mirror of
https://github.com/Raimondi/delimitMate.git
synced 2026-01-09 13:02:32 +08:00
Simplify CR expansion mapping. Add Test for it.
This commit is contained in:
@@ -406,9 +406,9 @@ function! delimitMate#ExpandReturn() "{{{
|
||||
" Expand:
|
||||
call delimitMate#FlushBuffer()
|
||||
|
||||
let b:delimitMate_lineSuffix = getline('.')[col('.')-1:]
|
||||
call feedkeys("\<Esc>l\"_Do \<CR>\<C-R>\<C-R>=b:delimitMate_lineSuffix\<CR>\<Esc>k$i\<Del>", 't')
|
||||
return ''
|
||||
" Not sure why I used the previous combos, but I'm sure somebody will tell
|
||||
" me about it.
|
||||
return "\<Esc>a\<CR>\<Esc>O"
|
||||
else
|
||||
return "\<CR>"
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user