From 48689a972d41256b423aa635dff689868a48e5bd Mon Sep 17 00:00:00 2001 From: Shougo Matsushita Date: Mon, 4 May 2015 16:26:59 +0900 Subject: [PATCH] Fix #273 check modifiable in :NeoSnippetClearMarkers --- autoload/neosnippet/commands.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/autoload/neosnippet/commands.vim b/autoload/neosnippet/commands.vim index f80b826..fdb4ab8 100644 --- a/autoload/neosnippet/commands.vim +++ b/autoload/neosnippet/commands.vim @@ -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