oldorg was bad idea

This commit is contained in:
rsc 2004-04-19 05:55:19 +00:00
parent 892de79874
commit 904f0d0b42
2 changed files with 0 additions and 14 deletions

View file

@ -174,9 +174,6 @@ struct Text
uint org; uint org;
uint q0; uint q0;
uint q1; uint q1;
uint oldorg;
uint oldq0;
uint oldq1;
int what; int what;
int tabstop; int tabstop;
Window *w; Window *w;

View file

@ -580,9 +580,6 @@ get(Text *et, Text *t, Text *argt, int flag1, int _0, Rune *arg, int narg)
r = bytetorune(name, &n); r = bytetorune(name, &n);
for(i=0; i<t->file->ntext; i++){ for(i=0; i<t->file->ntext; i++){
u = t->file->text[i]; u = t->file->text[i];
u->oldorg = u->org;
u->oldq0 = u->q0;
u->oldq1 = u->q1;
/* second and subsequent calls with zero an already empty buffer, but OK */ /* second and subsequent calls with zero an already empty buffer, but OK */
textreset(u); textreset(u);
windirfree(u->w); windirfree(u->w);
@ -604,14 +601,6 @@ get(Text *et, Text *t, Text *argt, int flag1, int _0, Rune *arg, int narg)
t->file->unread = FALSE; t->file->unread = FALSE;
for(i=0; i<t->file->ntext; i++){ for(i=0; i<t->file->ntext; i++){
u = t->file->text[i]; u = t->file->text[i];
if(u->oldorg > u->file->b.nc)
u->oldorg = u->file->b.nc;
if(u->oldq0 > u->file->b.nc)
u->oldq0 = u->file->b.nc;
if(u->oldq1 > u->file->b.nc)
u->oldq1 = u->file->b.nc;
u->org = u->oldorg;
textshow(u, u->oldq0, u->oldq1, 1);
textsetselect(&u->w->tag, u->w->tag.file->b.nc, u->w->tag.file->b.nc); textsetselect(&u->w->tag, u->w->tag.file->b.nc, u->w->tag.file->b.nc);
textscrdraw(u); textscrdraw(u);
} }