mirror of
https://github.com/Raimondi/delimitMate.git
synced 2026-10-09 06:45:55 +08:00
Simplify CR expansion mapping. Add Test for it.
This commit is contained in:
1 parent
f3176a664c
commit
bb9b0edcc5
3 files changed
+57
-3
No files matched your search
@@ -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