mirror of
https://github.com/Raimondi/delimitMate.git
synced 2026-10-19 04:21:27 +08:00
Check for 'backspace' when <CR> expansion is enabled.
This commit is contained in:
1 parent
5626a633d5
commit
48d2e3b9d1
1 file changed
+4
@@ -86,6 +86,10 @@ function! delimitMate#Init() "{{{
|
|||||||
unlet g:delimitMate_expand_cr
|
unlet g:delimitMate_expand_cr
|
||||||
let b:delimitMate_expand_cr = 1
|
let b:delimitMate_expand_cr = 1
|
||||||
endif
|
endif
|
||||||
|
if &backspace !~ 'eol' || &backspace !~ 'start'
|
||||||
|
echom "delimitMate: In order to use the <CR> expansion, you need to have 'eol' and 'start' in your backspace option. Read :help 'backspace'."
|
||||||
|
let b:delimitMate_expand_cr = 0
|
||||||
|
endif
|
||||||
call delimitMate#option_init("expand_cr", 0)
|
call delimitMate#option_init("expand_cr", 0)
|
||||||
|
|
||||||
" smart_quotes
|
" smart_quotes
|
||||||
|
|||||||
Reference in new issue
Block a user