summaryrefslogtreecommitdiff
path: root/src/Query.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/Query.zig')
-rw-r--r--src/Query.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Query.zig b/src/Query.zig
index 1524212c..3337a575 100644
--- a/src/Query.zig
+++ b/src/Query.zig
@@ -2045,7 +2045,7 @@ pub fn clampEdit(p: *Pardes, t: *panes.Text, old: []const u8, new: []u8) ?[]u8 {
if (rows_same) return new;
if (span.head > end or (span.head == end and old_to > end and put.len == 0 and end < old.len)) {
t.refused = true;
- if (t.pane()) |pane| if (p.paneIdOf(pane)) |id|
+ if (t.pane()) |pane| if (panes.paneIdOf(p, pane)) |id|
p.setMessage(id, "the rows are line 1's: edit the query (Enter keeps them as text)");
return null;
}