mhinz / vim-startify

:link: The fancy start screen for Vim.
MIT License
5.31k stars 187 forks source link

E716: Key not present in Dictionary: leftmouse #394

Closed 0xb0b closed 5 years ago

0xb0b commented 5 years ago

There is the initialization issue that causes these error messages on the start:

Error detected while processing function <SNR>38_set_cursor:
line    5:
E716: Key not present in Dictionary: leftmouse
Error detected while processing function <SNR>38_set_cursor:
line    5:
E15: Invalid expression: b:startify.oldline == b:startify.newline && col('.') != s:fixed_column && !b:startify.leftmouse

This works for me:

148   call s:set_mappings()
149   call cursor(b:startify.firstline, 5)
150   let b:startify.leftmouse = 0  " <--- initialize
151   autocmd startify CursorMoved <buffer> call s:set_cursor()

Environment:

Manjaro Linux 4.19.66-1-MANJARO x86_64 Xfce 4.14.1git-23545d
NVIM v0.3.8
mhinz commented 5 years ago

Hmm, weird that I never encountered this so far, but you're totally right.

Should be fixed now. Thanks! ✨

0xb0b commented 5 years ago

Yes, thanks. I was wondering too why nobody has noticed that :)