summaryrefslogtreecommitdiff
path: root/src/lsp/Ask.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-17 05:45:38 -0300
committerGabriel Schneider <[email protected]>2026-11-17 12:15:01 -0300
commit779ff8cc27014b8c2f2f078985ab2ca9cf285740 (patch)
tree8b05d0404544b9efd92e88c7b727d3ba8f6a37f5 /src/lsp/Ask.zig
parent55dbff5aced5c62f47be39fbc01276b6e36d7dd5 (diff)
downloadpardes-779ff8cc27014b8c2f2f078985ab2ca9cf285740.tar.gz
pardes-779ff8cc27014b8c2f2f078985ab2ca9cf285740.zip
Editor: what an edit of a text runs with, out of Pardes (docs/next-editor.md, R1): src/Editor.zig is a context of the allocators and pointers to the registers, the register the running command names, the replay's multi_* and the retired text, and the core (`p`), gathered per call by `p.editor()` from where they are, so no field of Pardes or its view moves and a dump crosses builds as before (an embedded `ed: Editor` would have renamed `registers` in the dump, matched by name, and lost them at an Upgrade); setYank, registerValue, retireEditText and normal.multiOnce take it, their callers hand `p.editor()`; core-test 810 of 949, shell-test 989 of 992, hxdiff 658 / parity 738 / hxgolf 124 with 0 mismatches, replicas pass
Diffstat (limited to 'src/lsp/Ask.zig')
-rw-r--r--src/lsp/Ask.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lsp/Ask.zig b/src/lsp/Ask.zig
index 250d6dba..879c1f5d 100644
--- a/src/lsp/Ask.zig
+++ b/src/lsp/Ask.zig
@@ -40,7 +40,7 @@ const TAG_TEXT_INSET = pardes.TAG_TEXT_INSET;
pub fn lspRequest(p: *Pardes, asked: usize, kind: lsp.Kind, arg_in: []const u8) void {
var arg = arg_in;
- if (!normal.multiOnce(p)) return; // one question per keystroke, from the primary
+ if (!normal.multiOnce(p.editor())) return; // one question per keystroke, from the primary
// Lspwhy narrates the last query where it was asked -- that pane's
// file, place and argument -- from wherever it is run.
const last_pane: ?usize = if (kind == .explain) (if (p.lsp_ask.last) |last| p.paneBySerial(last.serial) else null) else null;