Skip to content

Commit 48fd7d5

Browse files
committed
Revert "Change overtype indicator to a checkbox"
This reverts commit ae996d1 (post-rebase) / da527ec (pre-rabse).
1 parent ae996d1 commit 48fd7d5

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/bin/edit/draw_statusbar.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,8 @@ pub fn draw_statusbar(ctx: &mut Context, state: &mut State) {
161161
&arena_format!(ctx.arena(), "{}/{}", tb.logical_line_count(), tb.visual_line_count(),),
162162
);
163163

164-
let mut is_overtype = tb.is_overtype();
165-
if ctx.checkbox("overtype", "OVR", &mut is_overtype) {
166-
tb.set_overtype(is_overtype);
164+
if tb.is_overtype() && ctx.button("overtype", "OVR", ButtonStyle::default()) {
165+
tb.set_overtype(false);
167166
ctx.needs_rerender();
168167
}
169168

0 commit comments

Comments
 (0)