mirror of
https://github.com/Raimondi/delimitMate.git
synced 2025-12-08 13:44:47 +08:00
Jump out of space expansion. Never meant to disable it. Closes #129.
This commit is contained in:
@@ -25,10 +25,6 @@ function! delimitMate#ShouldJump(...) "{{{
|
|||||||
return 1
|
return 1
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if !b:_l_delimitMate_jump_expansion
|
|
||||||
return 0
|
|
||||||
endif
|
|
||||||
|
|
||||||
" Closing delimiter with space expansion.
|
" Closing delimiter with space expansion.
|
||||||
let nchar = delimitMate#GetCharFromCursor(1)
|
let nchar = delimitMate#GetCharFromCursor(1)
|
||||||
if !a:0 && b:_l_delimitMate_expand_space && char == " "
|
if !a:0 && b:_l_delimitMate_expand_space && char == " "
|
||||||
@@ -39,6 +35,10 @@ function! delimitMate#ShouldJump(...) "{{{
|
|||||||
return 3
|
return 3
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if !s:g('jump_expansion')
|
||||||
|
return 0
|
||||||
|
endif
|
||||||
|
|
||||||
" Closing delimiter with CR expansion.
|
" Closing delimiter with CR expansion.
|
||||||
let uchar = matchstr(getline(line('.') + 1), '^\s*\zs\S')
|
let uchar = matchstr(getline(line('.') + 1), '^\s*\zs\S')
|
||||||
if !a:0 && b:_l_delimitMate_expand_cr && char == ""
|
if !a:0 && b:_l_delimitMate_expand_cr && char == ""
|
||||||
|
|||||||
Reference in New Issue
Block a user