Sfoglia il codice sorgente

fix error when vim is in read-only mode

Benoit Pierre 4 anni fa
parent
commit
2d9df65b51
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  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