TaDaa / vimade

An eye friendly plugin that fades your inactive buffers and preserves your syntax highlighting!
MIT License
486 stars 8 forks source link

Split inccommand window causes error #65

Closed njhoffman closed 2 years ago

njhoffman commented 2 years ago

If inccommand option set to "split", when doing the :substitute command the following error is produced when the the preview window is opened. Anyway to easily exclude this window (I only see a way to include through basegroups)? Thanks!

Error detected while processing function vimade#Tick:
line   13:
E605: Exception not caught: Vimade Error=1
Vim(return):Error invoking 'python_execute' on channel 6 (python3-script-host):
@Traceback (most recent call last):
@  File "<string>", line 2, in <module>
@  File "/home/nicholas/.local/share/nvim/site/pack/packer/start/vimade/lib/vimade/bridge.py", line 32, in update^@    fader.update(nextState)
@  File "/home/nicholas/.local/share/nvim/site/pack/packer/start/vimade/lib/vimade/fader.py", line 229, in update^@    fadeWin(win)
@  File "/home/nicholas/.local/share/nvim/site/pack/packer/start/vimade/lib/vimade/fader.py", line 423, in
fadeWin^@  buf = buf[visible_rows[0][0]-1:visible_rows[len(visible_rows)-1][0]]^@IndexError: list index out of range
TaDaa commented 2 years ago

The latest update may fix this error.

VimadeWinDisable and VimadeBufDisable can also be used if a particular window / buffer need to be excluded

njhoffman commented 2 years ago

Nice work, error is gone, thank you!