segfault fix
This commit is contained in:
parent
9e409e3633
commit
ec429f89d8
7
ste.c
7
ste.c
@ -9,9 +9,9 @@
|
|||||||
|
|
||||||
/* main data structure containing:
|
/* main data structure containing:
|
||||||
* -cursor position
|
* -cursor position
|
||||||
* -real (matching memory)
|
* +real (matching memory)
|
||||||
* -offset (memory and screen offset)
|
* +offset (memory and screen offset)
|
||||||
* -render (drawn on the screen)
|
* +render (drawn on the screen)
|
||||||
* -window size
|
* -window size
|
||||||
* -statusbar message */
|
* -statusbar message */
|
||||||
struct term {
|
struct term {
|
||||||
@ -142,6 +142,7 @@ int main (int argc, char *argv[])
|
|||||||
break;
|
break;
|
||||||
case (KEY_END):
|
case (KEY_END):
|
||||||
t.cur.y = rows.rownum;
|
t.cur.y = rows.rownum;
|
||||||
|
t.cur.off_y = 0;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
if (c == KEY_STAB) c = '\t';
|
if (c == KEY_STAB) c = '\t';
|
||||||
|
Loading…
Reference in New Issue
Block a user