- Removed stupid static definitions of toggles and shortcut
lists. Many changes to shortcut_init(), toggle_init(),
statusq(), nanogetstr(), main(), and many other places.
- FIXME: Mouse support broken by this change.
- Multibuffer mode now allows multiple empty filenames.
Changes to add_open_files(), removed open_file_dup_search(),
open_file_dup_fix(), etc (DLR).
MEVENT mevent;
int foo = 0, tab_found = 0;
int currslen;
+ shortcut *s = currshortcut;
if (getmouse(&mevent) == ERR)
return;
edit_refresh();
} else if (wenclose(bottomwin, mevent.y, mevent.x) && !ISSET(NO_HELP)) {
- int k, val = 0;
+ int i, k;
if (currshortcut == main_list)
currslen = MAIN_VISIBLE;
if (mevent.x / k >= currslen)
return;
- val = currshortcut[(mevent.x / k) * 2 + mevent.y].val;
+ for (i = 0; i < (mevent.x / k) * 2 + mevent.y; i++)
+ s = s->next;
/* And ungetch that value */
- ungetch(val);
+ ungetch(s->val);
/* And if it's an alt-key sequence, we should probably send alt
too ;-) */
- if (val >= 'a' && val <= 'z')
+ if (s->val >= 'a' && s->val <= 'z')
ungetch(27);
}
}