Closed blueyed closed 9 years ago
When using view (which starts vim in readonly mode), calling :TRecentlyUsedFiles triggers this error in tlib:
view
:TRecentlyUsedFiles
Error detected while processing function tmru#SelectMRU..tlib#input#ListW..539: line 33: W10: Warning: Changing a readonly file
Function #539 is:
function! s:prototype.DisplayList(...) dict "{{{3
The code (source):
call append(0, lines)
The calls to tlib#normal#WithRegister('gg"tdG', 't') and tlib#normal#WithRegister('G"tddgg', 't') fail silently (through try/finally).
tlib#normal#WithRegister('gg"tdG', 't')
tlib#normal#WithRegister('G"tddgg', 't')
It appears that the tlib/tmru should explicitly set noreadonly for its buffer maybe?!
noreadonly
W10: Warning: Changing a readonly file
When using
view
(which starts vim in readonly mode), calling:TRecentlyUsedFiles
triggers this error in tlib:Function #539 is:
The code (source):
The calls to
tlib#normal#WithRegister('gg"tdG', 't')
andtlib#normal#WithRegister('G"tddgg', 't')
fail silently (through try/finally).It appears that the tlib/tmru should explicitly set
noreadonly
for its buffer maybe?!