Skip to content
Snippets Groups Projects
Commit e97b8d16 authored by echicken's avatar echicken
Browse files

Handle new return format from scrollbox.

parent c1ac550c
No related branches found
No related tags found
No related merge requests found
......@@ -408,14 +408,14 @@ function main() {
if (!state.input) continue;
if (state.input.mouse && state.input.mouse.press) {
var mret = scrollbox.getcmd(state.input);
if (typeof mret != 'number') {
if (typeof mret != 'object') {
console.gotoxy(console.screen_columns, console.screen_rows);
continue;
}
if (mret < state.doc.length && is_link(state.doc[mret].type)) {
if (mret.line < state.doc.length && is_link(state.doc[mret.line].type)) {
lowlight(state.doc[state.item], state.item);
state.item = mret;
state.history[state.history_idx].item = mret;
state.item = mret.line;
state.history[state.history_idx].item = mret.line;
highlight(state.doc[state.item], state.item);
state.input.key = '\r';
}
......
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