summaryrefslogtreecommitdiff
path: root/src/lsp/Ask.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-17 05:53:16 -0300
committerGabriel Schneider <[email protected]>2026-11-17 12:15:01 -0300
commit3dd2072fc525cdadf4f55a69f745c73c0b8c2b21 (patch)
treebbde59afec92eab134c9d8db248ff9369530d952 /src/lsp/Ask.zig
parent2b04f877c29cf1e95c2fc8154de1da322c7299a3 (diff)
downloadpardes-3dd2072fc525cdadf4f55a69f745c73c0b8c2b21.tar.gz
pardes-3dd2072fc525cdadf4f55a69f745c73c0b8c2b21.zip
edit: the edits of a text take the editing context (docs/next-editor.md, R2, second slice): enterInsert, exitInsert, handleInsert, insertKey, insertEdit, insertTab, pasteRegister, pasteText, normalDelete, normalYank, normalChange, deleteSelection, setEditCells, normalReplaceChar, chordReplace, replaceWithText, normalCase, normalJoin, normalRotateContents, normalAlign, normalIndent, normalToggleComment, normalAdjustNumber, addNewline, textobjectSelect and the three surrounds take `e: Editor`; insertEdit's splice end is `stop` and a comment extension `x` where they were `e`; 71 calls in 8 files 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 da03c021..2ee33123 100644
--- a/src/lsp/Ask.zig
+++ b/src/lsp/Ask.zig
@@ -308,7 +308,7 @@ pub fn lspResponse(p: *Pardes, id: u32, response: ?[]const u8) void {
}
if (rows.len == 0) {
if (w.kind == .completion and pane.body.mode == .insert and pane.body.nsel == 0 and
- pane.body.cur_row == w.row and pane.body.cur_col == w.col) edit.insertTab(p, &pane.body) catch |err| return p.reportError(w.pane, "complete", err);
+ pane.body.cur_row == w.row and pane.body.cur_col == w.col) edit.insertTab(p.editor(), &pane.body) catch |err| return p.reportError(w.pane, "complete", err);
// Nothing found fails, but for a file with no diagnostics,
// which is no failure, and a completion's Tab.
const none: ?[]const u8 = switch (w.kind) {