1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-29 03:17:53 -04:00

Bug 827, display_codepage: Call option_changed.

This change allows screen_driver_change_hook to detect that the
charset has been changed to UTF-8 and set screen_driver.utf8 = 1.
redraw_screen then calls get_screen_driver, which propagates the flag
to terminal.utf8.  That in turn avoids an assertion failure in
handle_interlink_event.
This commit is contained in:
Kalle Olavi Niemitalo 2007-01-28 13:54:41 +02:00 committed by Kalle Olavi Niemitalo
parent 5367209702
commit ff4c103a78

View File

@ -37,9 +37,7 @@ display_codepage(struct terminal *term, void *name_, void *xxx)
if (opt->value.number != index) {
opt->value.number = index;
/* TODO: option_changed() (we need to review the hooks
* to handle NULL ses or properly document that stuff). */
opt->flags |= OPT_TOUCHED;
option_changed(NULL, opt);
}
cls_redraw_all_terminals();