guicursor not restored to custom setting when hide_cursor is enabled
creativenull opened this issue · 1 comments
If I have manually set guicursor
to something other than the default provided and have hide_cursor
enabled in lir then after opening lir a file in lir will reset it back to the nvim provided default and not the user provided option.
Steps to reproduce:
set guicursor=n-v-c-sm:block,i-ci-ve:block,r-cr-o:hor20
- Add
hide_cursor
to lir setuprequire('lir').setup({ hide_cursor = true })
- Open a lir instance with
:lua require('lir.float').toggle()
- Choose a file to open
- Check
guicursor
with:set guicursor?
Expected Result
guicursor
should be the same as set in Step 1
Actual Result
guicursor
is set to default nvim guicursor
setting: n-v-c-sm:block,i-ci-ve:ver25,r-cr-o:hor20
I have a fork with the proper changes needed for it to persist user configured option with hide_cursor
enabled and be will to make the PR. But I wanted to see if it is an issue with other users as well before I can proceed.
Thank you for reporting the bug and describing how to reproduce it in detail!
I was able to reproduce the bug.
I've tried the repository you forked (fix-guicursor branch) and it looks like the bug is fixed.
If you can, please create a PR for it.
Thanks for your contribution!