Skip to content

Commit

Permalink
Merge pull request #837 from scrooloose/readonly-error-#831
Browse files Browse the repository at this point in the history
Make the NERDTree buffer writable when rendering it.
  • Loading branch information
PhilRunninger authored May 7, 2018
2 parents 68313ef + 2c38519 commit 0bf429b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/nerdtree/ui.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -438,7 +438,7 @@ function! s:UI.render()
call cursor(curLine, curCol)
let &scrolloff = old_scrolloff

setlocal nomodifiable
setlocal readonly nomodifiable
endfunction


Expand Down

0 comments on commit 0bf429b

Please sign in to comment.