diff options
Diffstat (limited to 'core/lsp/Ask.zig')
| -rw-r--r-- | core/lsp/Ask.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/lsp/Ask.zig b/core/lsp/Ask.zig index 40ffaede..f00942b0 100644 --- a/core/lsp/Ask.zig +++ b/core/lsp/Ask.zig @@ -235,7 +235,7 @@ fn applyLspEdits(p: *Pardes, pane: *Pane, revision: u32, edits: []const LspEdit) pane.body.vsel.active = false; pane.body.select = false; pane.body.sticky_col = -1; - pane.ensureCursorVisible(); + pane.ensureCursorVisible(p.settings.tab); return true; } @@ -537,7 +537,7 @@ test "Callstack always opens and focuses its own pane, reusing it for another sy try std.testing.expect(std.mem.endsWith(u8, report.file.?.path, "/+Callstack")); try std.testing.expectEqual(@as(i32, 0), source.body.cur_row); const stale_selection = std.mem.indexOfScalar(u8, report.file.?.content, '\n').? + 1; - report.body.setRange(report.file.?.content, 0, .{ .anchor = stale_selection, .head = stale_selection + 6 }, true); + report.body.setRange(config.tab_width, report.file.?.content, 0, .{ .anchor = stale_selection, .head = stale_selection + 6 }, true); layout.toggleCollapse(p, 0); var frame = std.heap.ArenaAllocator.init(std.testing.allocator); defer frame.deinit(); |
