acme: correct modified message after initial load; more detail in

message

http://codereview.appspot.com/123051
This commit is contained in:
Russ Cox 2009-09-25 01:43:54 -04:00
parent 1961ee8223
commit daea2c7d50
5 changed files with 29 additions and 14 deletions

View file

@ -754,7 +754,8 @@ openfile(Text *t, Expand *e)
w = makenewwindow(t);
t = &w->body;
winsetname(w, e->name, e->nname);
textload(t, 0, e->bname, 1);
if(textload(t, 0, e->bname, 1) >= 0)
t->file->unread = FALSE;
t->file->mod = FALSE;
t->w->dirty = FALSE;
winsettag(t->w);