Skip to content

Commit

Permalink
Make the NERDTree buffer writable when rendering it.
Browse files Browse the repository at this point in the history
  • Loading branch information
Phil Runninger (mac) committed May 6, 2018
1 parent 68313ef commit 2c38519
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 2c38519

Please sign in to comment.