Added config.scroll_past_end

This commit is contained in:
George Sokianos 2022-01-05 20:03:20 +00:00
parent 2fdf19ec49
commit d30a9622a5
4 changed files with 14 additions and 8 deletions

View File

@ -1,12 +1,9 @@
# Lite XL for AmigaOS 4.1 FE
Lite XL is coming to AmigaOS 4.1. This is a preview release for my supporters
and not ready for public release, so please do not share it yet.
Lite XL is coming to AmigaOS 4.1.
A lot of things are not quite working. Please have a look at the todo list
below, for known bugs and things I want to add.
If you would like to give me some feedback, contact me at walkero@gmail.com
A few things are not quite working. Please have a look at the "Known issues"
section below.
## Installation
You can extract the Lite XL archive wherever you want and run the *lite*
@ -39,6 +36,11 @@ https://git.walkero.gr/walkero/lite-xl/issues
# Changelog
## [1.16.12.7] - future
## Added
- Added config.scroll_past_end that when its true lets the user scroll
further than the end of the file. By default is set to false.
## [1.16.12.6] - 2022-01-04
### Fixed
- Fixed a problem introduced in previous version when LiteXL was executed

1
data/core/config.lua Executable file → Normal file
View File

@ -6,6 +6,7 @@ config.max_log_items = 80
config.message_timeout = 5
config.mouse_wheel_scroll = 50 * SCALE
config.file_size_limit = 10
config.scroll_past_end = true
config.ignore_files = "^%."
config.symbol_pattern = "[%a_][%w_]*"
config.non_word_chars = " \t\n/\\()\"':,.;<>~!@#$%^&*|+=[]{}`?-"

5
data/core/docview.lua Executable file → Normal file
View File

@ -96,7 +96,10 @@ function DocView:get_filename()
end
function DocView:get_scrollable_size()
function DocView:get_scrollable_size()
if not config.scroll_past_end then
return self:get_line_height() * (#self.doc.lines) + style.padding.y * 2
end
return self:get_line_height() * (#self.doc.lines - 1) + self.size.y
end

2
os4build.sh Executable file → Normal file
View File

@ -1,6 +1,6 @@
#!/bin/bash
cflags="-D__USE_INLINE__ -DLITE_XL_DATA_USE_EXEDIR -DLITE_USE_SDL_RENDERER -Wall -O3 -g -std=gnu11 -fno-strict-aliasing -Isrc -Ilib/font_renderer -I/sdk/local/newlib/include/SDL2 -lSDL2 -llua -lauto"
cflags="-D__USE_INLINE__ -DLITE_XL_DATA_USE_EXEDIR -DLITE_USE_SDL_RENDERER -Wall -O3 -std=gnu11 -fno-strict-aliasing -Isrc -Ilib/font_renderer -I/sdk/local/newlib/include/SDL2 -lSDL2 -llua -lauto"
#cflags+=" $(pkg-config --cflags lua5.2) $(sdl2-config --cflags)"
lflags="-mcrt=newlib -static-libgcc -static-libstdc++ -lSDL2 -lagg -lfreetype -llua -lm -lpthread -athread=native"
#for package in libagg freetype2 lua5.2; do