mirror of
https://github.com/preservim/nerdtree.git
synced 2024-11-26 10:14:20 +08:00
Merge pull request #837 from scrooloose/readonly-error-#831
Make the NERDTree buffer writable when rendering it.
This commit is contained in:
commit
0bf429bac3
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user