feat: add retain_symlinks option to enable writing files through links (default: true)

This commit is contained in:
CJ van den Berg 2026-02-06 14:04:53 +01:00
parent 3a718bf6f6
commit c0107e32e0
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
3 changed files with 15 additions and 1 deletions

View file

@ -8,6 +8,7 @@ const root = @import("soft_root").root;
const tracy = @import("tracy");
const builtin = @import("builtin");
const file_link = @import("file_link");
const Buffer = @import("Buffer");
pub const renderer = @import("renderer");
const input = @import("input");
@ -154,6 +155,8 @@ fn init(allocator: Allocator) InitError!*Self {
var conf, const conf_bufs = root.read_config(@import("config"), allocator);
Buffer.retain_symlinks = conf.retain_symlinks;
if (@hasDecl(renderer, "install_crash_handler") and conf.start_debugger_on_crash)
renderer.jit_debugger_enabled = true;