Fix #273 check modifiable in :NeoSnippetClearMarkers

This commit is contained in:
Shougo Matsushita 2015-05-04 16:26:59 +09:00
parent 526b31253e
commit 48689a972d
1 changed files with 2 additions and 1 deletions

View File

@ -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