Introduction
Introduction Statistics Contact Development Disclaimer Help
Style fixes. - sam - An updated version of the sam text editor.
git clone git://vernunftzentrum.de/sam.git
Log
Files
Refs
LICENSE
---
commit c146644eea7f7b5d0e77df096ba65612ac4fe791
parent 6a7718b03b78265e0a434e398f5c8775d495caf0
Author: Rob King <[email protected]>
Date: Thu, 1 Sep 2016 15:33:09 -0500
Style fixes.
Diffstat:
samterm/main.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/samterm/main.c b/samterm/main.c
@@ -536,7 +536,7 @@ cmdscrolldownline(Flayer *l, long a, Text *t)
{
long tot = scrtotal(l);
long p0 = l->origin + frcharofpt(&l->f, Pt(l->f.r.min.x, l->f.r.min.y + l-…
- long p1 = l->origin + frcharofpt(&l->f, Pt(l->f.r.min.x, l->f.r.max.y - l-…
+ long p1 = l->origin + frcharofpt(&l->f, Pt(l->f.r.min.x, l->f.r.max.y - l-…
if (p0 < tot && p1 < tot)
horigin(t->tag, p0);
@@ -858,7 +858,7 @@ type(Flayer *l, int res) /* what a bloody mess this …
}
if (k.k == Kcommand){
- if (k.c < 0 || k.c >= Cmax)
+ if (k.c < 0 || k.c >= Cmax || commands[k.c].f == NULL)
panic("command table miss");
CommandEntry *e = &commands[k.c];
@@ -867,7 +867,8 @@ type(Flayer *l, int res) /* what a bloody mess this …
a = e->f(l, a, t);
else{
Flayer *lt = flwhich(k.p);
- lt->p0 = e->f(lt, lt->p0, (Text *)lt->user1);
+ if (lt)
+ lt->p0 = e->f(lt, lt->p0, (Text *)lt->user1);
}
}
}
You are viewing proxied material from vernunftzentrum.de. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.