From ec429f89d8504231e758b20d511fb2b7a83719c4 Mon Sep 17 00:00:00 2001 From: ElectricAlchemist Date: Wed, 30 Oct 2019 00:30:46 +0100 Subject: [PATCH] segfault fix --- ste | Bin 22168 -> 22168 bytes ste.c | 7 ++++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ste b/ste index 6f516f9b57ff5d661c971c41a178a01e695c9c91..ad6e7d2a636c846f1d4dc6ffc5365028b4b55804 100755 GIT binary patch delta 160 zcmbQSmT|^f#tm1PM9zLXe9$N3fWfN$WtLtq4UBBuGwyAE!4xTBCwH8c!HfY6x>?$~&9$?Z!L!qqgMV9z3P-um1|G$*o94%{W F2>`toIy3+P delta 160 zcmbQSmT|^f#tm1PL|P2AzD!y$_vmJ}w|}LZy|*S^vs=3P1yiJinOHY#fEfcrC+jy; z28NegfBgT?FYm&@VC%)mz`);<3MBV&G64A@Ab#rxAnB8=`)G2#w6a>!*Z==Ll0`QI zHM(}zGI(~na`0~}QQ>I4RHtfqfM31^sE>hR^8x8@Mgf(7|NlES{N?0tUH|R>|Cgeh Iqh)O^0hM_=%K!iX diff --git a/ste.c b/ste.c index 6ad12af..0088cfe 100644 --- a/ste.c +++ b/ste.c @@ -9,9 +9,9 @@ /* main data structure containing: * -cursor position - * -real (matching memory) - * -offset (memory and screen offset) - * -render (drawn on the screen) + * +real (matching memory) + * +offset (memory and screen offset) + * +render (drawn on the screen) * -window size * -statusbar message */ struct term { @@ -142,6 +142,7 @@ int main (int argc, char *argv[]) break; case (KEY_END): t.cur.y = rows.rownum; + t.cur.off_y = 0; break; default: if (c == KEY_STAB) c = '\t';