commit 0bf429bac3b5d868b5cc5e1da51049d72d1c8a49
parent 68313ef0f512897d63aef55909847759123ce918
Author: Phil Runninger <PhilRunninger@users.noreply.github.com>
Date: Sun, 6 May 2018 21:13:44 -0400
Merge pull request #837 from scrooloose/readonly-error-#831
Make the NERDTree buffer writable when rendering it.
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/nerdtree/ui.vim b/lib/nerdtree/ui.vim
@@ -390,7 +390,7 @@ endfunction
" FUNCTION: s:UI.render() {{{1
function! s:UI.render()
- setlocal modifiable
+ setlocal noreadonly modifiable
" remember the top line of the buffer and the current line so we can
" restore the view exactly how it was
@@ -438,7 +438,7 @@ function! s:UI.render()
call cursor(curLine, curCol)
let &scrolloff = old_scrolloff
- setlocal nomodifiable
+ setlocal readonly nomodifiable
endfunction