Parcourir la source

Merge pull request #99 from benoit-pierre/fix_ro_error

fix error when vim is in read-only mode
jlanzarotta il y a 4 ans
Parent
commit
b5c9014e60
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      plugin/bufexplorer.vim

+ 1 - 0
plugin/bufexplorer.vim

@@ -475,6 +475,7 @@ function! s:DisplayBufferList()
     " the buffer using CTRL-^.
     setlocal buftype=nofile
     setlocal modifiable
+    setlocal noreadonly
     setlocal noswapfile
     setlocal nowrap