Adam
d78f310a4e
Merge pull request #829 from Guldoman/draw_rect_alpha_format
...
Use SDL to manage color format mapping in `ren_draw_rect`
2022-02-03 17:02:49 -05:00
Guldoman
9a6cd2b453
Use SDL to manage color format mapping in `ren_draw_rect`
2022-02-03 01:50:43 +01:00
Adam Harrison
af76f544be
Fixing performance regression. Due to the way the hashes work, we must 0 out the whole thing.
2022-01-29 15:19:22 -05:00
Adam
3d40725b8f
Merge pull request #816 from adamharrison/fix-process-api
...
Fixing up Process API
2022-01-28 23:53:37 -05:00
Adam Harrison
941523868e
Merge branch 'fix-process-api' of github.com:adamharrison/lite-xl into fix-process-api
2022-01-28 15:44:16 -05:00
Adam Harrison
3773a812bd
Incorporate realtakase's suggestions.
2022-01-28 15:39:57 -05:00
Adam
0a70b13a73
Merge pull request #809 from lite-xl/merge-master-2.0
...
Merge master 2.0
2022-01-28 14:38:22 -05:00
Francesco Abbate
3a53b05b29
Do no error out on malformed ignore patterns
2022-01-25 14:16:40 +01:00
Francesco Abbate
3e39da071d
Fix problem with project module save hook
2022-01-24 09:34:54 +01:00
Francesco Abbate
bc9f8a4075
Use new mutex in dmon to avoid possible lock-up
...
We rely on one variable _dmon.modify_watches shared between thread to
ensure that we don't lock with the dmon polling thread waiting indefinitely
and helding a lock.
To ensure that the polling thread sees modifications done to 'modify_watches'
we use an additional mutex that act as a memory barrier.
2022-01-24 09:34:54 +01:00
Adam Harrison
456126400a
Added in new merge method, and run it on plugins. Also made it so plugin configs can be set anywhere, even if we don't know the plugin beforehand.
2022-01-22 18:39:23 -05:00
Adam
7e6d9df58d
Merge pull request #805 from Jan200101/PR/fallback-force
...
use lua fallback earlier when fallbacks are forced
2022-01-22 17:30:01 -05:00
Jan200101
227ca7d0e5
use lua fallback earlier when fallbacks are forced
2022-01-22 23:29:28 +01:00
Francesco Abbate
f7193c4fa2
Remove unused whitespace_replacements function
2022-01-22 21:46:02 +01:00
Adam Harrison
f9ad83e53e
Fixed windows not converting utf8 environment block to utf16.
2022-01-22 13:34:47 -05:00
Adam Harrison
ed4128bc65
Added in support for env on linux.
2022-01-22 12:36:30 -05:00
Adam Harrison
428c757a13
Implemented @guldoman's suggestion for how to close file handles.
2022-01-22 12:02:59 -05:00
Adam
9cb25acd7b
Merge pull request #815 from takase1121/fix-subprocess-read
...
fix invalid memory access
2022-01-22 11:18:19 -05:00
takase1121
f24ebf853d
fix invalid memory access
2022-01-22 23:30:48 +08:00
Adam
8c8bd4692c
Merge pull request #808 from adamharrison/fix-commenting
...
Fix commenting selections.
2022-01-20 23:28:05 -05:00
Adam Harrison
b523bd5cee
Fixed end of block-style line comments.
2022-01-20 22:17:21 -05:00
Francesco Abbate
f6a0e12e31
Merge branch 'master-2.0'
2022-01-19 20:31:33 +01:00
Francesco Abbate
cd83df1abf
Bump version and changelog to prepare 2.0.5 release
2022-01-19 18:18:25 +01:00
Adam
6025c43241
Merge pull request #743 from takase1121/better-logview
...
multiple improvements to logging
2022-01-18 23:25:36 -05:00
Adam Harrison
cdbfecc5ce
Streamlined, and fixed guldo's problem.
2022-01-18 21:38:43 -05:00
Adam Harrison
30cc205cd4
Fixed issue first mentioned in #771 .
2022-01-18 21:38:38 -05:00
Adam
d3e1636881
Merge pull request #771 from takase1121/multiline-comment-command
...
add toggle-block-comment
2022-01-18 21:07:46 -05:00
Adam
3b3e41c095
Merge pull request #799 from Guldoman/bit32_polyfill
...
Improve bit32 polyfill
2022-01-18 21:06:48 -05:00
Adam
a4e5d9f043
Merge pull request #798 from Jan200101/PR/wrap
...
Add fallbacks to all common dependencies
2022-01-18 20:54:36 -05:00
Francesco Abbate
2dd154edeb
Remove remaining debug message
2022-01-18 10:42:20 +01:00
Jan200101
192c577966
Add fallbacks to all common dependencies
2022-01-15 00:53:46 +01:00
Francesco Abbate
7e9b2f30da
Treat final '/' or '/$' in ignore rule as part of the pattern
...
Evolve the rule for directory in ignore_files to be more natural
and easy to understand.
When a final '/' or '/$' is found we consider the pattern to match
a directory and the pattern is not modifed. In turns, is used, before
matching a directory's name a final '/' is appended to its name
before checking if it matches the pattern.
With the previous rule a final '/' in the pattern meant also a directory
but the '/' was removed from the pattern.
2022-01-13 16:43:37 +01:00
Francesco Abbate
2456452f65
Fix error to close view when deleting a file
2022-01-13 16:38:20 +01:00
Guldoman
e51c76c72b
Assert for negative `field` in bit32 polyfill
...
This more closely matches the behavior of lua5.2.
2022-01-12 19:56:09 +01:00
Francesco Abbate
ae1890d29a
Fix project files reading with symlink
2022-01-12 00:32:10 +01:00
Guldoman
51975472a9
Add bit32 polyfill globally
2022-01-12 00:07:53 +01:00
Guldoman
7eb9908f1a
Improve bit32 polyfill
2022-01-12 00:07:14 +01:00
Francesco Abbate
4cdd42de1a
Ensure config.plugins are restored on new config
...
When a user's or project's module configuration file is changed we
make sure that the config.plugins fields are all restored so that
all plugins already loaded can continue to work.
2022-01-10 09:54:47 +01:00
Francesco Abbate
656a89c494
Fix checks when opening new project directory
2022-01-09 23:26:11 +01:00
Francesco Abbate
827f3f876d
Remove remaining debug code fragment
2022-01-09 23:26:11 +01:00
Francesco Abbate
648b977c1e
Use a timeout in dmon thread with pending events
2022-01-09 23:26:11 +01:00
Francesco Abbate
9be22f0b8d
Attempt to fix dmon critical section for windows
...
Should fix commit bb12f085f3.
When taking the critical section we should always send the
event to wakeup the events thread. In addition use
TryEnterCriticalSection to send the event only if needed
reducing the number of spurious events sent.
2022-01-09 23:26:11 +01:00
Francesco Abbate
19ec86d971
Do not use timeout in dmon linux select
...
Wait indefinitely in select and wake-up the thread when needed.
2022-01-09 23:26:11 +01:00
Francesco Abbate
44a8dc320b
Fix some errors with previous commits
2022-01-09 23:26:11 +01:00
Francesco Abbate
6584bdfd33
On Windows wait indefinitely in dmon thread
...
Avoid waiting with a finite timeout and wait indefinitely in
dmon thread. When we need to unwatch we send a signal to a special
event meant to wakeup the waiting thread.
2022-01-09 23:26:11 +01:00
Francesco Abbate
f0aea5b1a4
Report error codes from dmon_watch_add
2022-01-09 23:26:11 +01:00
Francesco Abbate
39366d3a09
Ensure project rescan thread is terminated
...
When changing a project we need to ensure that the old threads
are no longer run.
2022-01-09 23:26:11 +01:00
Francesco Abbate
1520c12580
Remove DMON_LOG_ERROR to return an error code
2022-01-09 23:26:11 +01:00
Francesco Abbate
7473fbf32c
Fix undue asserts in dmon_extra
...
Some asserts are placed in case that can effectively occur
so we remove the assertion and we return false. In turn we
adapt the logic accordingly so when false is returned to add
a watch we do not open that directory.
2022-01-09 23:26:11 +01:00
Francesco Abbate
5032e7352e
Write an initial project module if not present
2022-01-09 23:26:11 +01:00