lite-xl/src/api
Takase 7111b8a6c9 feat(process): allow commands and envs on proces_start (#1477)
* feat(process): allow commands and envs on proces_start

* refactor(process): copy process arguments once whenever possible

Refactors the code to use an arglist type which is just lpCmdline on Windows
and a list in Linux.
The function automatically escapes the command when it is needed, avoiding
a second copy.

This also allows UTF-8 commands btw.

* fix(process): fix invalid dereference

* refactor(process): mark xstrdup as potentially unused

* feat(process): add parent process environment when launching process

* fix(process): fix operator precedence with array operators

* fix(process): fix segfault when freeing random memory

* fix(process): fix wrong check for setenv()

* fix(process): fix accidentally initializing an array by assignment

* fix(process): clear return value if success
2023-12-26 13:16:33 +00:00
..
dirmonitor Updated dummy method signature to match prototypes. 2023-08-07 14:50:43 +01:00
api.c c core: fix extra utf8 build conflict on windows 2022-05-11 00:22:01 -04:00
api.h Fix native plugins not reloading upon core:restart (#1219) 2022-12-02 17:06:35 -05:00
dirmonitor.c fix(dirmonitor): deadlock if error handler jumps somewhere else (#1647) 2023-12-26 13:16:33 +00:00
process.c feat(process): allow commands and envs on proces_start (#1477) 2023-12-26 13:16:33 +00:00
regex.c Make empty groups in `regex.gmatch` return their offset (#1325) 2023-08-07 14:50:43 +01:00
renderer.c Use x offset to define render command rect in `rencache_draw_text` (#1618) 2023-12-26 13:16:33 +00:00
system.c Scale mouse coordinates by window scale (#1630) 2023-12-26 13:16:33 +00:00
utf8.c Don't set a value twice (#1306) 2023-01-05 15:48:49 -05:00