Skip to content

Commit

Permalink
Apply darkstar@github's fix so that entering insert mode and escaping…
Browse files Browse the repository at this point in the history
… out

doesn't mark the file as dirty.
  • Loading branch information
davidgiven committed Jun 10, 2020
1 parent 31c08b0 commit 190486f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cpmtools/qe.c
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,9 @@ void insert_mode(bool replacing)
uint16_t c = cpm_bios_conin();
if (c == 27)
break;
else if (c == 8)

dirty = true;
if (c == 8)
{
if (gap_start != current_line)
gap_start--;
Expand All @@ -655,7 +657,7 @@ void insert_mode(bool replacing)
redraw_current_line();
}

dirty = true;
set_status_line("");
}

void insert_text(uint16_t count)
Expand Down

0 comments on commit 190486f

Please sign in to comment.