Skip to content

Commit 190486f

Browse files
committed
Apply darkstar@github's fix so that entering insert mode and escaping out
doesn't mark the file as dirty.
1 parent 31c08b0 commit 190486f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cpmtools/qe.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,9 @@ void insert_mode(bool replacing)
632632
uint16_t c = cpm_bios_conin();
633633
if (c == 27)
634634
break;
635-
else if (c == 8)
635+
636+
dirty = true;
637+
if (c == 8)
636638
{
637639
if (gap_start != current_line)
638640
gap_start--;
@@ -655,7 +657,7 @@ void insert_mode(bool replacing)
655657
redraw_current_line();
656658
}
657659

658-
dirty = true;
660+
set_status_line("");
659661
}
660662

661663
void insert_text(uint16_t count)

0 commit comments

Comments
 (0)