Skip to content

Commit da527ec

Browse files
committed
Change overtype indicator to a checkbox
1 parent 33fd5d4 commit da527ec

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/bin/edit/draw_statusbar.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,9 @@ 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-
if tb.is_overtype() && ctx.button("overtype", "OVR", ButtonStyle::default()) {
165-
tb.set_overtype(false);
164+
let mut is_overtype = tb.is_overtype();
165+
if ctx.checkbox("overtype", "OVR", &mut is_overtype) {
166+
tb.set_overtype(is_overtype);
166167
ctx.needs_rerender();
167168
}
168169

0 commit comments

Comments
 (0)