Skip to content

Commit

Permalink
Last undo should turn off modified flag. Because I don't completely
Browse files Browse the repository at this point in the history
trust undo yet, an arg to Zunmodf will now turn on the modified flag.
  • Loading branch information
Sean MacLennan committed Oct 2, 2010
1 parent 5c57629 commit 8840371
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bcmds.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,5 +148,5 @@ void Zlstbuff(void)

void Zunmodf(void)
{
Curbuff->bmodf = FALSE;
Curbuff->bmodf = Argp;
}
4 changes: 4 additions & 0 deletions undo.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,10 @@ void Zundo(void)
}

recycle_undo(Curbuff);

if (!Curbuff->undo_tail)
/* Last undo */
Curbuff->bmodf = FALSE;
}
#else
void Zundo(void) { Tbell(); }
Expand Down

0 comments on commit 8840371

Please sign in to comment.