Fix #273 check modifiable in :NeoSnippetClearMarkers
This commit is contained in:
parent
526b31253e
commit
48689a972d
@ -137,7 +137,8 @@ function! neosnippet#commands#_clear_markers() "{{{
|
||||
let expand_stack = neosnippet#variables#expand_stack()
|
||||
|
||||
" Get patterns and count.
|
||||
if empty(expand_stack)
|
||||
if !&l:modifiable
|
||||
\ || empty(expand_stack)
|
||||
\ || neosnippet#variables#current_neosnippet().trigger
|
||||
return
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user