add bigtags

This commit is contained in:
rsc 2005-12-16 15:14:14 +00:00
parent 20ae0b0fc2
commit f8dea3c178
5 changed files with 96 additions and 2 deletions

View file

@ -282,6 +282,17 @@ rowtype(Row *row, Rune r, Point p)
else{
winlock(w, 'K');
wintype(w, t, r);
/*
* TAG If we typed in the tag, might need to make it
* bigger to show text. \n causes tag to expand.
*/
if(t->what == Tag){
t->w->tagsafe = FALSE;
if(r == '\n')
t->w->tagexpand = TRUE;
winresize(w, w->r, TRUE, TRUE);
}
/* END TAG */
winunlock(w);
}
}