From 9eac227835317d2fad9ae9b816590ce33a3ab7c4 Mon Sep 17 00:00:00 2001 From: Shougo Matsushita Date: Tue, 17 May 2016 20:50:40 +0900 Subject: [PATCH] Fix #343 check modifiable --- autoload/neosnippet/handlers.vim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/autoload/neosnippet/handlers.vim b/autoload/neosnippet/handlers.vim index 78a813e..db27759 100644 --- a/autoload/neosnippet/handlers.vim +++ b/autoload/neosnippet/handlers.vim @@ -60,6 +60,10 @@ function! neosnippet#handlers#_cursor_moved() abort "{{{ endfunction"}}} function! neosnippet#handlers#_all_clear_markers() abort "{{{ + if !&l:modifiable + return + endif + let pos = getpos('.') try