junegunn / vim-peekaboo

:eyes: " / @ / CTRL-R
1.14k stars 38 forks source link

Error when loclist is open #9

Closed tthbellcom closed 9 years ago

tthbellcom commented 9 years ago

Hi!

I get the following error when using peekaboo with an open loclist (opened by syntastic).

peekaboo_loclist_error

The peekaboo scratch buffer opens as expected, when pressing ", put as soon as i select a register, the cursor jumps to the loclist and i get the error in the screenshot.

tthbellcom commented 9 years ago

Quick followup. As i see it, it happens when peekaboo tries to highligt the selected register.

junegunn commented 9 years ago

Hi, I can't seem to reproduce the error. Could you try it again with a minimal vimrc without any other plugins or settings except syntastic and peekaboo? Something like this:

vim -Nu <(cat << EOF
set rtp+=~/.vim/plugged/vim-peekaboo
set rtp+=~/.vim/plugged/syntastic
EOF
)
tthbellcom commented 9 years ago

Narrowed it down to syntastics auto loclist feature causing the error.

let g:syntastic_auto_loc_list=1

I'm not sure if this is an issue for peekaboo or syntastic?

junegunn commented 9 years ago

Thanks for narrowing down the problem. It was not peekaboo's fault, but I told peekaboo to be forgiving of its inconsiderate neighbors. It won't happen again.

tthbellcom commented 9 years ago

Epic comment :laughing: Thanks for the quick response! :PlugUpdate