diff options
Diffstat (limited to 'core/draw.zig')
| -rw-r--r-- | core/draw.zig | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/core/draw.zig b/core/draw.zig index 3caf27ca..a94c8e60 100644 --- a/core/draw.zig +++ b/core/draw.zig @@ -521,8 +521,9 @@ fn renderPane(p: *Pardes, s: *Surface, arena: std.mem.Allocator, pane: *Pane, r: // In window mode the box holds the pane's letter instead of its mode. const label: ?u8 = if (p.view().window_pick != null) layout.windowLabel(p, id) else null; // A tag in a typing state is typed in: its box says so (walk UI SPEC - // §3.2), whatever the body's mode. - const typing = p.view().tag_state.kind != .rest and TagState.hostOf(p) == id; + // §3.2), whatever the body's mode; not while it waits for the keyboard + // (UX DESIGN O2). + const typing = p.view().tag_state.kind != .rest and !p.view().tag_state.waits and TagState.hostOf(p) == id; s.set(r.x, tag_y, if (label) |*letter| @as(*const [1]u8, letter) else if (typing) config.tag_insert else switch (pane.body.mode) { .normal => config.tag_normal, .insert => config.tag_insert, @@ -1065,7 +1066,7 @@ fn joinBand(p: *Pardes, s: *Surface, arena: std.mem.Allocator, pane: *Pane, r: R for (0..rows) |y| joinCells(s, r.x + TAG_TEXT_INSET, y0 + @as(u16, @intCast(y)), storage[y * columns ..][0..columns], 0, r.w - TAG_TEXT_INSET, .{ .rgb = fg }); // A head typed in: its caret a bar at the field's, the keyboard's // where the pane has it. - if (head.caret) |c| if (active) { + if (head.caret) |c| if (active and !p.view().tag_state.waits) { const at = modal.positionAt(shown.text, shown.fromReal(c)); if (at.row < drawn.head) { const col = panes.File.rawDisplayCol(tab, lines[at.row], @min(at.col, lines[at.row].len)); |
