lite-xl/data/core
Luke aka SwissalpS b5617a3eef
Fix #1538 log scrolls automatically (the real PR) (#1546)
* fix #1538 log scrolls automatically

adds:
- when user scrolls, position is kept no matter how many new entries
arrive
- when user scrolls up to last entry, autoscroll is enabled again

does not add buttons to jump up/down
see #1538

* move scroll-test out of on_mouse_wheel

* determine diff_index with loop

* remove check at move_towards yoffset

* use while loop instead of repeat loop

* remove meaningless setter

* remove stray var
2023-08-19 13:29:48 +08:00
..
commands Merge carets after `doc:move-to-{previous,next}-char` (#1462) 2023-08-19 12:43:56 +08:00
doc Make `Doc:sanitize_position` return a more appropriate `col` (#1469) 2023-08-19 13:28:14 +08:00
bit.lua Assert for negative `field` in bit32 polyfill 2022-01-12 19:56:09 +01:00
command.lua Disable `trimwhitespace` and `drawwhitespace` via their configs (#1446) 2023-08-19 12:39:22 +08:00
commandview.lua Pass the currently selected item to `CommandView` validation (#1203) 2022-11-15 12:03:13 -04:00
common.lua Use `table.move` to implement `common.splice` (#1324) 2023-08-19 12:28:47 +08:00
config.lua Disable `trimwhitespace` and `drawwhitespace` via their configs (#1446) 2023-08-19 12:39:22 +08:00
contextmenu.lua contextmenu: adjust y positioning if less than zero (#1268) 2022-12-28 02:51:24 -04:00
dirwatch.lua Make `dirwatch` sorting compatible with what `file_bisect` expects (#1300) 2023-08-19 12:28:19 +08:00
docview.lua Don't calculate widths per-uft8-char when not needed (#1409) 2023-08-19 12:38:49 +08:00
emptyview.lua fix: center title and version in emptyview (#1311) 2023-08-19 12:28:21 +08:00
ime.lua Improve IME location updates (#1170) 2022-12-20 20:11:13 -04:00
init.lua When logging don't use `core.status_view` if not yet initialized 2023-08-19 13:27:31 +08:00
keymap-macos.lua Fix horizontal scroll with touchpad on MacOS 2022-12-28 17:26:57 +01:00
keymap.lua Improve IME location updates (#1170) 2022-12-20 20:11:13 -04:00
logview.lua Fix #1538 log scrolls automatically (the real PR) (#1546) 2023-08-19 13:29:48 +08:00
modkeys-generic.lua Add macos keybindings 2021-04-21 09:48:30 +02:00
modkeys-macos.lua Add macos keybindings 2021-04-21 09:48:30 +02:00
nagview.lua NagView: properly rescale on scale change (#1379) 2023-08-19 12:37:49 +08:00
node.lua fix: move tab scroll buttons to remove spacing before 1st tab (#1231) 2022-12-20 22:06:53 -04:00
object.lua comment typo in object.lua (#1541) 2023-08-19 13:29:48 +08:00
regex.lua core: ported regex.gsub to faster native version (#1233) 2022-12-20 17:46:37 -04:00
rootview.lua Add IME support (#991) 2022-10-15 19:58:51 -04:00
scrollbar.lua Make `Scrollbar` follow `force_status` when animations are disabled 2022-11-15 21:08:33 +01:00
start.lua feat(bootstrap): return error string from C searcher 2023-08-19 12:45:15 +08:00
statusview.lua feat: encode home in statusview file path (#1224) 2022-12-06 06:19:52 -04:00
strict.lua Initial commit 2019-12-28 11:17:56 +00:00
style.lua style: move default colors to its own style file 2022-06-02 19:20:54 -04:00
syntax.lua Revert "core syntax: strip the path from filename on syntax.get (#1168)" (#1322) 2023-08-19 13:28:14 +08:00
titleview.lua Add on_scale_change event to View (#1146) 2022-10-11 14:44:32 -04:00
tokenizer.lua Allow `tokenizer` to pause and resume in the middle of a line (#1444) 2023-08-19 12:39:22 +08:00
utf8string.lua c core: fix extra utf8 build conflict on windows 2022-05-11 00:22:01 -04:00
view.lua Add more options to `Scrollbar` (#1174) 2022-11-01 18:38:50 -04:00