Added config.scroll_past_end
This commit is contained in:
parent
2fdf19ec49
commit
d30a9622a5
|
@ -1,12 +1,9 @@
|
||||||
# Lite XL for AmigaOS 4.1 FE
|
# Lite XL for AmigaOS 4.1 FE
|
||||||
|
|
||||||
Lite XL is coming to AmigaOS 4.1. This is a preview release for my supporters
|
Lite XL is coming to AmigaOS 4.1.
|
||||||
and not ready for public release, so please do not share it yet.
|
|
||||||
|
|
||||||
A lot of things are not quite working. Please have a look at the todo list
|
A few things are not quite working. Please have a look at the "Known issues"
|
||||||
below, for known bugs and things I want to add.
|
section below.
|
||||||
|
|
||||||
If you would like to give me some feedback, contact me at walkero@gmail.com
|
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
You can extract the Lite XL archive wherever you want and run the *lite*
|
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
|
# 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
|
## [1.16.12.6] - 2022-01-04
|
||||||
### Fixed
|
### Fixed
|
||||||
- Fixed a problem introduced in previous version when LiteXL was executed
|
- Fixed a problem introduced in previous version when LiteXL was executed
|
||||||
|
|
|
@ -6,6 +6,7 @@ config.max_log_items = 80
|
||||||
config.message_timeout = 5
|
config.message_timeout = 5
|
||||||
config.mouse_wheel_scroll = 50 * SCALE
|
config.mouse_wheel_scroll = 50 * SCALE
|
||||||
config.file_size_limit = 10
|
config.file_size_limit = 10
|
||||||
|
config.scroll_past_end = true
|
||||||
config.ignore_files = "^%."
|
config.ignore_files = "^%."
|
||||||
config.symbol_pattern = "[%a_][%w_]*"
|
config.symbol_pattern = "[%a_][%w_]*"
|
||||||
config.non_word_chars = " \t\n/\\()\"':,.;<>~!@#$%^&*|+=[]{}`?-"
|
config.non_word_chars = " \t\n/\\()\"':,.;<>~!@#$%^&*|+=[]{}`?-"
|
||||||
|
|
|
@ -96,7 +96,10 @@ function DocView:get_filename()
|
||||||
end
|
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
|
return self:get_line_height() * (#self.doc.lines - 1) + self.size.y
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/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)"
|
#cflags+=" $(pkg-config --cflags lua5.2) $(sdl2-config --cflags)"
|
||||||
lflags="-mcrt=newlib -static-libgcc -static-libstdc++ -lSDL2 -lagg -lfreetype -llua -lm -lpthread -athread=native"
|
lflags="-mcrt=newlib -static-libgcc -static-libstdc++ -lSDL2 -lagg -lfreetype -llua -lm -lpthread -athread=native"
|
||||||
#for package in libagg freetype2 lua5.2; do
|
#for package in libagg freetype2 lua5.2; do
|
||||||
|
|
Loading…
Reference in New Issue