coolwanglu / neovim-e

Electron UI for Neovim
MIT License
271 stars 29 forks source link

Cursor position shifts when resizing #8

Closed rygwdn closed 9 years ago

rygwdn commented 9 years ago

This is pretty easy to reproduce. When I have the cursor near the right side of the window and then resize, I need to be very careful to resize the window such that the cursor remains lined up with the characters in the window, otherwise it moves off the character grid:

Working properly: screen shot 2015-02-20 at 7 57 25 am

Resized horizontally: screen shot 2015-02-20 at 7 57 44 am

The same issue happens vertically: screen shot 2015-02-20 at 7 58 03 am

coolwanglu commented 9 years ago

After you resize the window (not during), did the font size become larger? Ideally it should not, and the number of rows/cols should change accordingly.

rygwdn commented 9 years ago

the font size stays the same, but the spacing (both vertical and horizontal) changes.

coolwanglu commented 9 years ago

fixed via #13