Skip to content
Snippets Groups Projects
Commit c503beef authored by deuce's avatar deuce
Browse files

Properly ignore mouse "keys" in the menu.

parent 748f63e6
No related branches found
No related tags found
No related merge requests found
......@@ -14,6 +14,7 @@ void viewscroll(void)
char *scrollback;
struct text_info txtinfo;
int x,y;
struct mouse_event mevent;
x=wherex();
y=wherey();
......@@ -35,6 +36,9 @@ void viewscroll(void)
switch(key) {
case 0:
switch(getch()<<8) {
case CIO_KEY_MOUSE:
getmouse(&mevent);
break;
case CIO_KEY_UP:
top--;
break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment