mirror of
https://github.com/rkd77/elinks.git
synced 2025-01-03 14:57:44 -05: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:
parent
5367209702
commit
ff4c103a78
@ -37,9 +37,7 @@ display_codepage(struct terminal *term, void *name_, void *xxx)
|
|||||||
|
|
||||||
if (opt->value.number != index) {
|
if (opt->value.number != index) {
|
||||||
opt->value.number = index;
|
opt->value.number = index;
|
||||||
/* TODO: option_changed() (we need to review the hooks
|
option_changed(NULL, opt);
|
||||||
* to handle NULL ses or properly document that stuff). */
|
|
||||||
opt->flags |= OPT_TOUCHED;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
cls_redraw_all_terminals();
|
cls_redraw_all_terminals();
|
||||||
|
Loading…
Reference in New Issue
Block a user