summaryrefslogtreecommitdiff
path: root/src/mouse.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/mouse.zig')
-rw-r--r--src/mouse.zig10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mouse.zig b/src/mouse.zig
index b7307f2d..c1ea598d 100644
--- a/src/mouse.zig
+++ b/src/mouse.zig
@@ -657,9 +657,9 @@ pub fn handleMouse(p: *Pardes, event: Mouse) void {
if (m.button == config.select_button) {
const t = point.t;
const at = point.at - modal.lineStartOffset(point.text, point.line);
- // A clicked header is typed straight into, as a clicked tag is.
+ // A clicked header starts in normal mode, as a clicked tag does.
if (!(p.header_focus and p.header_column == column)) tagline.enterHeader(p, column);
- t.mode = .insert;
+ t.mode = .normal;
t.cur_row = point.line;
t.cur_col = @intCast(at);
t.vsel = .{ .active = false, .row = point.line, .col = @intCast(at) };
@@ -797,13 +797,13 @@ pub fn handleMouse(p: *Pardes, event: Mouse) void {
const pointed = edit.pointerTextSelection(p, id, mcol, mrow, m.body_hit, p.pointer_tag_hit) orelse return;
pane.clearPointerSelection(sel_slot);
pane.sel[sel_slot] = pointed.sel;
- // A clicked tag is typed straight into, from where it was
- // clicked; `:` is the door to its normal mode.
+ // A clicked tag starts in normal mode, its cursor where it
+ // was clicked: `i` or `a` types there.
pane.focus = if (on_tag) .tag else .body;
if (on_tag) {
// a count typed before the click was meant for the body
pane.body.normal.clear();
- pane.tag.mode = .insert;
+ pane.tag.mode = .normal;
pane.tag.normal.clear();
pane.tag.vsel.active = false;
pane.tag.msel.active = false;