The peekabook window should be as unintrusive as possible. The buffer in the
source window shouldn't be changed in the first place, therefore there is no
need to retrigger any autocmds when switching back to it.
Hi,
I noticed this glitch because whenever I enter a help buffer, either wincmd L (if there's only window) or wincmd T (all other cases) gets triggered.
Thus :h :h creates a vertical split and the time I press ", peekaboo#peek() runs s:back(), where execute s:win.current.'wincmd w' goes back to the source window which triggers wincmd T, which creates a new tab, which is not what I expect.
The peekabook window should be as unintrusive as possible. The buffer in the source window shouldn't be changed in the first place, therefore there is no need to retrigger any autocmds when switching back to it.
Hi,
I noticed this glitch because whenever I enter a help buffer, either
wincmd L
(if there's only window) orwincmd T
(all other cases) gets triggered.Thus
:h :h
creates a vertical split and the time I press ",peekaboo#peek()
runss:back()
, whereexecute s:win.current.'wincmd w'
goes back to the source window which triggerswincmd T
, which creates a new tab, which is not what I expect.