refactor: remove unused error return in Plane.put_yx and Plane.cursor_move_yx
This commit is contained in:
parent
52dfc1e706
commit
2d5288aa6f
16 changed files with 46 additions and 46 deletions
|
|
@ -34,7 +34,7 @@ fn render_grip(ctx: ?*anyopaque, theme: *const Widget.Theme) void {
|
|||
const w: *WidgetList = @ptrCast(@alignCast(ctx.?));
|
||||
if (w.hover()) {
|
||||
w.plane.set_style(theme.statusbar_hover);
|
||||
w.plane.cursor_move_yx(0, 0) catch {};
|
||||
w.plane.cursor_move_yx(0, 0);
|
||||
_ = w.plane.putstr(" ") catch {};
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -117,7 +117,7 @@ fn render_mini_mode(plane: *Plane, theme: *const Widget.Theme) void {
|
|||
const y, const x = plane.rel_yx_to_abs(0, pos + 1);
|
||||
tui.rdr().cursor_enable(y, x, tui.get_cursor_shape()) catch {};
|
||||
} else {
|
||||
plane.cursor_move_yx(0, pos + 1) catch return;
|
||||
plane.cursor_move_yx(0, pos + 1);
|
||||
var cell = plane.cell_init();
|
||||
_ = plane.at_cursor_cell(&cell) catch return;
|
||||
cell.set_style(theme.editor_cursor);
|
||||
|
|
|
|||
|
|
@ -201,7 +201,7 @@ fn smooth_block_at(plane: *Plane, pos: u64) void {
|
|||
const l = eighths_l[eighths_c - blk];
|
||||
const r = eighths_r[eighths_c - blk];
|
||||
plane.erase();
|
||||
plane.cursor_move_yx(0, @as(c_int, @intCast(@divFloor(pos, eighths_c)))) catch return;
|
||||
plane.cursor_move_yx(0, @as(c_int, @intCast(@divFloor(pos, eighths_c))));
|
||||
_ = plane.putstr(@ptrCast(r)) catch return;
|
||||
_ = plane.putstr(@ptrCast(l)) catch return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue