toldorg was bad idea - plan9port - [fork] Plan 9 from user space
(HTM) git clone git://src.adamsgaard.dk/plan9port
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 904f0d0b4210ce81304c6cebfb562d9bb67bdfbe
(DIR) parent 892de7987409ccd209dd4f43fb7717408d4a04bd
(HTM) Author: rsc <devnull@localhost>
Date: Mon, 19 Apr 2004 05:55:19 +0000
oldorg was bad idea
Diffstat:
M src/cmd/acme/dat.h | 3 ---
M src/cmd/acme/exec.c | 11 -----------
2 files changed, 0 insertions(+), 14 deletions(-)
---
(DIR) diff --git a/src/cmd/acme/dat.h b/src/cmd/acme/dat.h
t@@ -174,9 +174,6 @@ struct Text
uint org;
uint q0;
uint q1;
- uint oldorg;
- uint oldq0;
- uint oldq1;
int what;
int tabstop;
Window *w;
(DIR) diff --git a/src/cmd/acme/exec.c b/src/cmd/acme/exec.c
t@@ -580,9 +580,6 @@ get(Text *et, Text *t, Text *argt, int flag1, int _0, Rune *arg, int narg)
r = bytetorune(name, &n);
for(i=0; i<t->file->ntext; 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 */
textreset(u);
windirfree(u->w);
t@@ -604,14 +601,6 @@ get(Text *et, Text *t, Text *argt, int flag1, int _0, Rune *arg, int narg)
t->file->unread = FALSE;
for(i=0; i<t->file->ntext; 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);
textscrdraw(u);
}