summaryrefslogtreecommitdiff
path: root/src/File.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/File.zig')
-rw-r--r--src/File.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/File.zig b/src/File.zig
index 5db04443..cf44c69a 100644
--- a/src/File.zig
+++ b/src/File.zig
@@ -588,7 +588,7 @@ test "indexed source rows match uncached scans across content changes" {
/// through here, so the drawn row, the caret and a click cannot disagree.
pub fn rowPads(pane: *const Pane, row: i32, out: *[Tables.max_pads]Tables.Pad) []const Tables.Pad {
const table = rowTable(pane, row) orelse return &.{};
- return pane.file.?.tables.padsOf(table, sourceLine(pane, row), out);
+ return pane.file.?.tables.padsOf(table, @intCast(row), sourceLine(pane, row), out);
}
/// The table `row` is laid out in, in this pane (`rowPads`).