diff options
Diffstat (limited to 'src/fe-text/gui-windows.c')
-rw-r--r-- | src/fe-text/gui-windows.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/fe-text/gui-windows.c b/src/fe-text/gui-windows.c index e8f5dae3..48c1feb7 100644 --- a/src/fe-text/gui-windows.c +++ b/src/fe-text/gui-windows.c @@ -46,7 +46,8 @@ static GUI_WINDOW_REC *gui_window_init(WINDOW_REC *window, gui->view = textbuffer_view_create(textbuffer_create(), window->width, window->height, settings_get_int("indent"), - settings_get_bool("indent_always")); + settings_get_bool("indent_always"), + settings_get_bool("scroll")); return gui; } @@ -313,10 +314,15 @@ static void read_settings(void) for (tmp = windows; tmp != NULL; tmp = tmp->next) { WINDOW_REC *rec = tmp->data; + GUI_WINDOW_REC *gui = WINDOW_GUI(rec); - textbuffer_view_set_default_indent(WINDOW_GUI(rec)->view, + textbuffer_view_set_default_indent(gui->view, settings_get_int("indent"), settings_get_bool("indent_always")); + + textbuffer_view_set_scroll(gui->view, + gui->use_scroll ? gui->scroll : + settings_get_bool("scroll")); } special_vars_add_signals(prompt, 4, funcs); @@ -332,6 +338,7 @@ void gui_windows_init(void) settings_add_bool("lookandfeel", "indent_always", FALSE); settings_add_str("lookandfeel", "prompt", "[$[.15]T] "); settings_add_str("lookandfeel", "prompt_window", "[$winname] "); + settings_add_bool("lookandfeel", "scroll", TRUE); prompt = NULL; prompt_window = NULL; window_create_override = -1; |