autoindent fixes from rob

This commit is contained in:
rsc 2004-09-28 16:10:49 +00:00
parent ad6638adc7
commit 53998c99d6
2 changed files with 27 additions and 12 deletions

View file

@ -76,11 +76,13 @@ wininit(Window *w, Window *clone, Rectangle r)
draw(screen, br, button, nil, button->r.min);
w->filemenu = TRUE;
w->maxlines = w->body.fr.maxlines;
w->autoindent = globalautoindent;
//assert(w->body.w == w);
if(clone){
w->dirty = clone->dirty;
textsetselect(&w->body, clone->body.q0, clone->body.q1);
winsettag(w);
w->autoindent = clone->autoindent;
}
}