diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-04 23:35:20 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-05 01:21:29 -0300 |
| commit | dbdd21d8ebfaaedb5675a457aa385b97450237f5 (patch) | |
| tree | c501bfef83afb769f6156cb422ce0d56dd24c822 /src/gui/gui.zig | |
| parent | e38820811c306e7575e87d3fe9a84c7a1503f7d9 (diff) | |
| download | pardes-dbdd21d8ebfaaedb5675a457aa385b97450237f5.tar.gz pardes-dbdd21d8ebfaaedb5675a457aa385b97450237f5.zip | |
vaxis_input: the core's cell styles as vaxis draws them (style, color, the underline mapped by its name) and a pasted key's text (pasteBytes) are vaxis_input's, the tui's copies gone; the gui's test-mode stdin takes a paste's keys through the same pasteBytes, which also knows the keypad's Enter (its own copy did not)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'src/gui/gui.zig')
| -rw-r--r-- | src/gui/gui.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/gui.zig b/src/gui/gui.zig index 6a310635..21d448bd 100644 --- a/src/gui/gui.zig +++ b/src/gui/gui.zig @@ -3196,7 +3196,7 @@ const StdinFeed = struct { switch (event) { .key_press => |key| if (f.in_paste) { // A newline reads as Ctrl-J, as the tty's paste has it. - const text = key.text orelse if (key.codepoint == vaxis.Key.enter or (key.mods.ctrl and key.codepoint == 'j')) "\n" else if (key.codepoint == vaxis.Key.tab) "\t" else ""; + const text = vaxis_input.pasteBytes(key); f.paste.appendSlice(gpa, text) catch {}; } else { postKey(in, key, if (key.text) |t| f.cache.put(t) else ""); |
