From dbdd21d8ebfaaedb5675a457aa385b97450237f5 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Wed, 4 Nov 2026 23:35:20 -0300 Subject: 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 Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge --- src/gui/gui.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui') 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 ""); -- cgit v1.3