nvimdev / dashboard-nvim

vim dashboard
MIT License
2.34k stars 190 forks source link

fix(doom): Correct negative offset when resizing terminal #462

Closed polirritmico closed 3 months ago

polirritmico commented 3 months ago

This PR Fix issue #461

For some reason, vim.api.nvim_strwidth returns a larger width after resizing at certain small window sizes. This PR adds a check for negative values in offset and sets it to zero in those cases.

Seems like an upstream bug with nvim_strwidth.

polirritmico commented 3 months ago

Don't know why the ci / pandoc to vimdoc (pull_request) is failing.

mathjiajia commented 3 months ago

Could you also fix a similar error for ‘hyper’ theme

polirritmico commented 3 months ago

Could you also fix a similar error for ‘hyper’ theme

What issue #? I just need the error message to answer.

Edit: You mean #454?

mathjiajia commented 3 months ago

yes

yetone commented 3 months ago

‌‌‌‌‌Looking forward to the merging of this fix