micro/internal
Dmitry Maluka 3f0cd019d7
Fix incorrect LastVisualX after changing bufWidth w/o resize (#2629)
* Fix incorrect LastVisualX after changing bufWidth w/o resize

When we resize a buffer pane with softwrap enabled, we update the
cursors LastVisualX values to ensure that moving cursor up or down
within a wrapped line will move the cursor to the correct location.
The problem is that we need to do it also in cases when the visual
buffer width within the buffer window is changing without resizing
the window itself, e.g. when toggling the ruler on/off.

So update LastVisualX whenever the buffer width changes, not neccesarily
as a result of resizing the buffer window.

* Update LastVisualX and relocate when toggling wordwrap on/off

Visual location of a cursor may change not only when softwrap is toggled
on or off but also when wordwrap is toggled on or off without changing
the softwrap setting. So need to update cursor LastVisualX values and
relocate the view if needed, just like when softwrap is toggled, to make
sure that moving the cursor up and down will work correctly and that the
cursor will not be left out of the view.
2022-12-02 17:49:06 -08:00
..
action Fix "no" when replacing with empty string (#2641) 2022-12-02 17:48:50 -08:00
buffer Fix save with sudo for large file sizes 2022-11-02 16:00:12 -07:00
clipboard Use zyedidia/clipper for external clipboard 2022-06-14 08:40:57 -04:00
config plugins: load directories that are symlinks (#2214) 2022-07-24 14:13:46 -07:00
display Fix incorrect LastVisualX after changing bufWidth w/o resize (#2629) 2022-12-02 17:49:06 -08:00
info Clear prompt before callback 2020-11-16 14:07:22 -05:00
lua Make more libraries available (#1917) 2020-11-21 01:46:17 -05:00
screen Use shell job for terminal callback 2022-08-19 15:46:01 -07:00
shell Use shell job for terminal callback 2022-08-19 15:46:01 -07:00
util Improve comments 2021-08-21 17:58:30 -04:00
views Fix unsplit crash 2020-02-08 21:06:13 -05:00