micro/internal/display
Dmitry Maluka 8ff7ec50ef
Fix relocate at the end of buffer when scrollmargin is 0 (#2578)
* Add LessEqual and GreaterEqual for SLoc

* Fix relocate at the end of buffer when scrollmargin is 0

Fix the following issue: when scrollmargin is set to 0 and we move the
cursor to the end of buffer (e.g. via Ctrl-End), the buffer view doesn't
move.

The cause is that the condition c.LessThan(w.Scroll(bEnd, -scrollmargin+1))
doesn't hold, since Scroll() takes care not to return a location beyond
the end of buffer, so in this case Scroll() just returns bEnd.
2022-10-01 13:03:40 -07:00
..
bufwindow.go Fix relocate at the end of buffer when scrollmargin is 0 (#2578) 2022-10-01 13:03:40 -07:00
infowindow.go Fix up X,Y values in BufView 2021-04-09 01:48:58 +02:00
softwrap.go Fix relocate at the end of buffer when scrollmargin is 0 (#2578) 2022-10-01 13:03:40 -07:00
statusline.go Added lines and percentage statusbar directives (#2055) 2022-02-22 01:31:32 -08:00
tabwindow.go Adds options for tab bar and tab color reversing (#2480) 2022-07-17 12:18:11 -07:00
termwindow.go Fix palette colors with tcell v2 2020-09-21 01:21:59 -04:00
uiwindow.go Fix non-working split resize with mouse drag (#1811) 2020-08-04 18:37:19 -04:00
window.go Replace BufWidth & BufHeight with BufView 2021-04-08 23:54:18 +02:00