1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-28 01:35:32 +00:00
elinks/src/terminal
Kalle Olavi Niemitalo bac6e76c23 switch_to_tab: Prevent "tab number out of range" assertion failure.
To reproduce:
- Start ELinks.
- Enable the ui.tabs.wraparound option.
- Press t to open a second tab.
- Go to http://elinks.cz/ in the second tab.
- Press 3< to step three tabs to the left.

In the statement "tab = tabs + tab % tabs;", tab == -2 and tabs == 2.
So tab % tabs == 0 and tab becomes 2, which is out of range.

The new version calls get_opt_bool even if the tab parameter is already in
range, but the cost should be negligible compared to the redraw_terminal()
call that follows.
2006-09-27 21:29:27 +03:00
..
color.c Avoided white on white and similar cases in true color mode. 2006-08-26 19:21:08 +02:00
color.h Removed dead code. Add suffix _256 to TERM_COLOR_(BACK|FORE)GROUND. 2006-08-26 19:05:31 +02:00
draw.c Rename CONFIG_UTF_8 to CONFIG_UTF8. 2006-09-17 16:12:47 +03:00
draw.h Rename CONFIG_UTF_8 to CONFIG_UTF8. 2006-09-17 16:12:47 +03:00
event.c Rename CONFIG_UTF_8 to CONFIG_UTF8. 2006-09-17 16:12:47 +03:00
event.h terminal UTF-8: check_kbd_label_key() allows non-ASCII characters again. 2006-08-13 23:48:18 +03:00
hardio.c Remove now useless $Id: lines. 2005-10-21 09:14:07 +02:00
hardio.h Remove empty lines in start of header files 2005-11-15 11:33:27 +01:00
itrm.h terminal: Define separate structs for events passed via the interlink socket. 2006-08-06 20:02:39 +00:00
kbd.c Bug 772: Recognize ESC [ Z as Shift-Tab, and bind it like Alt-Tab by default. 2006-09-17 12:38:23 +03:00
kbd.h Rename CONFIG_UTF_8 to CONFIG_UTF8. 2006-09-17 16:12:47 +03:00
key.inc Remove now useless $Id: lines. 2005-10-21 09:14:07 +02:00
Makefile path_to_top -> top_builddir 2005-10-20 04:00:35 +02:00
mouse.c terminal: Define separate structs for events passed via the interlink socket. 2006-08-06 20:02:39 +00:00
mouse.h terminal: Define separate structs for events passed via the interlink socket. 2006-08-06 20:02:39 +00:00
palette.inc Remove now useless $Id: lines. 2005-10-21 09:14:07 +02:00
screen.c Rename CONFIG_UTF_8 to CONFIG_UTF8. 2006-09-17 16:12:47 +03:00
screen.h Modularise src/terminal 2006-05-20 15:01:24 +00:00
tab.c switch_to_tab: Prevent "tab number out of range" assertion failure. 2006-09-27 21:29:27 +03:00
tab.h Move delayed_open to src/terminal/tab.c 2006-01-16 19:28:03 +00:00
terminal.c Small comment about UTF-8 detection. 2006-09-01 21:06:08 +02:00
terminal.h Rename CONFIG_UTF_8 to CONFIG_UTF8. 2006-09-17 16:12:47 +03:00
TODO Initial commit of the HEAD branch of the ELinks CVS repository, as of 2005-09-15 15:58:31 +02:00
window.c Don't let move_current_tab move the tab beyond the main menu. 2006-05-14 22:17:26 +03:00
window.h New tabs always open below dialogs, never above. 2006-05-14 14:03:17 +03:00