Adam Harrison
bdd87298d6
Updated dummy method signature to match prototypes.
2023-08-07 14:50:43 +01:00
Guldoman
b58ba3fede
Make empty groups in `regex.gmatch` return their offset ( #1325 )
...
This makes `regex.gmatch` behave like `string.gmatch`.
2023-08-07 14:50:43 +01:00
xwii
e4c5fceaf9
Use `table.move` to implement `common.splice` ( #1324 )
...
* Use `table.move` to implement `common.splice`
* Disallow negative `remove` in `common.splice`
2023-08-07 14:50:43 +01:00
Merlin Volkmer
75b6173dc9
language_md: add nix code block highlighting ( #1323 )
2023-08-07 14:50:43 +01:00
adityaraj
8c4f093c41
Create Renderer Only When It Doesn't Exist ( #1315 )
2023-08-07 14:50:43 +01:00
Jan
c44a3cd291
replace uses of SDL_Window with RenWindow ( #1319 )
...
Since Renwindow contains our instance of SDL_Window we can use this
to simplify future logic to create separate window instances
2023-08-07 14:50:43 +01:00
Takase
3edd53a835
Reorganize resources/ + wasm target ( #1244 )
...
* add README.md to resources directory
* add cross/ directory for meson cross files
* fix readme list syntax error
* fix reflink
* disable ASYNCIFY_ADVISE by default
* use executable names instead of hardcoding paths
2023-08-07 14:50:43 +01:00
George Sokianos
04deddbe79
Merge branch 'master' of ssh://git.walkero.gr:2222/walkero/lite-xl
2023-01-08 20:52:48 +00:00
George Sokianos
f6784d2530
innosetup changes
2023-01-08 20:52:15 +00:00
jgmdev
d6600b1ea3
packaging: use master branch for plugin addons
2023-01-08 02:32:31 -04:00
sammyette
1504ad7f4c
fix: center title and version in emptyview ( #1311 )
...
* fix: divide by amount of lines
2023-01-06 15:27:05 -04:00
Jan
aa503665e0
defer lua error until after cleanup ( #1310 )
2023-01-06 14:31:44 -04:00
Jefferson González
da524a3c46
plugin api: added missing luaL_typeerror ( #1313 )
2023-01-06 14:22:55 -04:00
jgmdev
7eb75b1a19
Packaging Scripts: updated widgets install location
2023-01-06 11:43:14 -04:00
Guldoman
385ee69f94
`linewrapping`: Disable horizontal scrolling when enabled ( #1309 )
2023-01-05 16:02:12 -05:00
Julien Voisin
6c6e5e9b99
Handle readlink errors ( #1292 )
2023-01-05 15:59:45 -05:00
Guldoman
72c0ad768e
Make `dirwatch` sorting compatible with what `file_bisect` expects ( #1300 )
...
The result of `a.filename < b.filename` is sometimes different from
`system.path_compare(a.filename, a.type, b.filename, b.type)` which
causes issues to `file_bisect`, as it expects the sorting to be done
with `system.path_compare`.
2023-01-05 15:59:15 -05:00
Julien Voisin
b3937b0380
Don't set a value twice ( #1306 )
2023-01-05 15:48:49 -05:00
Julien Voisin
7133ea5419
Fix a memory leak ( #1305 )
...
`font` was not freed upon error.
2023-01-05 15:48:01 -05:00
Julien Voisin
81b8747d80
Make api_require's nodes const ( #1296 )
2023-01-05 15:46:26 -05:00
Takase
b7e9ca6585
do not allow users to create an empty font group ( #1303 )
2023-01-04 16:46:08 +01:00
Guldoman
2638e9636b
Allow command buffer to be expanded ( #1297 )
2023-01-01 21:12:14 -05:00
Dave
4e272c33de
Minor typos in init text
2022-12-30 13:32:20 +01:00
Jefferson González
3491eb464d
Bump version to 2.1.1 ( #1284 )
...
* updated wraps
* updated release date
2022-12-28 22:03:36 -04:00
jgmdev
79908baed6
regex: properly call pcre2_jit_compile
2022-12-28 19:40:20 -04:00
Guldoman
74349f8e56
Fix horizontal scroll with touchpad on MacOS
2022-12-28 17:26:57 +01:00
Jefferson González
870d685b59
contextmenu: adjust y positioning if less than zero ( #1268 )
...
* use clamp for both x and y coords
2022-12-28 02:51:24 -04:00
Quinten Kock
3fda8c0a09
Fix userdata APIs for Lua 5.4 in native plugin interface ( #1188 )
...
* Reintroduce some missing Lua API's from native plugin API
* Add new upvalue functions to header
* Fix things that are actually macros in current lua
* Introduce lua_insert,replace,remove macros from lua5.4
2022-12-27 23:39:28 -05:00
Jefferson González
141d00795c
dirmonitor: use pipes on fsevents ( #1274 )
...
As suggested by Guldoman this change introduces the usage
of pipes to allow blocking the get changes call until any
file system changes are received, which now properly reduces
the cpu usage on idle to 0%.
This change better fixes #1237
2022-12-27 23:07:12 -04:00
xwii
271a804986
Fix popping subsyntaxes that end consecutively ( #1246 )
2022-12-27 20:24:52 -04:00
Simon Krauter
8603644726
Fix two typos in data/init.lua ( #1272 )
2022-12-27 19:56:30 -04:00
Martin Ashby
d4989d98bd
Add example settings to _overwrite_ an existing key binding ( #1270 )
2022-12-27 18:40:22 -05:00
Jefferson González
5fa7dabd34
dirmonitor: fix high cpu usage, fixes #1237 ( #1271 )
2022-12-27 18:23:39 -05:00
Guldoman
c29b1c2cb9
Use Lua string length instead of relying on `strlen` ( #1262 )
...
This allows us to render `NULL` byte sequences and not truncate strings
that contain them.
2022-12-26 13:49:07 -04:00
Guldoman
18e3542be0
Allow `TreeView` file operation commands when focused ( #1256 )
...
Impacts `treeview:{rename,new-file,new-folder,open-in-system}`.
Previously those were only available when the mouse was over the
`TreeView`.
They now use the same predicate as `treeview:delete`.
2022-12-26 13:41:14 -04:00
Adam
1446d95695
Update changelog.md
2022-12-22 11:52:41 -05:00
Adam
3674a9140c
Update changelog.md
...
Added in note about dirmonitor changes.
2022-12-22 11:52:23 -05:00
jgmdev
fc891ef3df
Updated changelog.md
2022-12-22 12:28:21 -04:00
Jan
5c4d15c4d5
set arch tuple in meson ( #1254 )
...
the existing preprocessor logic in C is kept for alternative compilation methods
2022-12-22 11:24:13 -04:00
jgmdev
0ab7fe9311
core regex: use backward compatible lua_newuserdata
2022-12-21 00:54:12 -04:00
Guldoman
97bfe503a0
`detectindent`: Limit subsyntax depth ( #1253 )
2022-12-20 22:28:29 -04:00
sammyette
1810db0705
fix: move tab scroll buttons to remove spacing before 1st tab ( #1231 )
...
* fix: move tab scroll buttons to remove spacing before 1st tab
* fix: always show tab scroll buttons
* fix: cleanup code, get scroll button rect for correct button
* fix: expand to full size for tabs if scroll buttons arent visible
* fix: define n as visible tabs number
2022-12-20 22:06:53 -04:00
Guldoman
c42f01ed1f
Improve IME location updates ( #1170 )
...
* Avoid updating IME input rect if it hasn't changed
* Update the IME input rect even when the composition didn't change
* Apply IME input blocking workaround to non-Linux only
2022-12-20 20:11:13 -04:00
Guldoman
24179bbb23
Merge pull request #1245 from Jan200101/PR/touch-event
...
add touch events
2022-12-21 00:13:52 +01:00
Jan
b584f1fe35
Simplify SDL message boxes ( #1249 )
...
It has what we needs and needs less abstraction, overall simplifying the code
2022-12-20 18:36:18 -04:00
Jefferson González
902539b97a
trimwhitespace: expose functionality and extra features ( #1238 )
2022-12-20 18:13:56 -04:00
Takase
6d0e7f3046
Fix some syntax errors ( #1243 )
...
* move signal.h inclusion outside of if-else block
not sure if this change is appropriate, we need to make sure SIG_IGN
is only set on POSIX targets. To verify this we might need to include
unistd.h,
* fix syntax error
this is often overlooked when compiling for normal platforms
2022-12-20 18:11:05 -04:00
Guldoman
213dc7142e
`toolbarview`: Remove tooltip when hidden ( #1251 )
2022-12-20 18:07:29 -04:00
Jefferson González
3c64c32379
core: ported regex.gsub to faster native version ( #1233 )
...
* added regex.gmatch iterator and other fixes
* fixed issues reported by Guldoman
* push strings with fixed len just in case for binary safety
* added limit to regex.gsub and use pushinteger
* added description to regex.gsub limits param
* replaced substitutions regex description for correctness
* ignore negative limits on regex.gsub
2022-12-20 17:46:37 -04:00
Cyriaque Skrapits
5b5b5fd3e3
contextmenu: make divider less aggressive ( #1228 )
...
Following changes are applied:
- use divider color instead of caret;
- add a vertical padding on the divider.
2022-12-20 17:29:53 -04:00