From a321ad015068d162a1bab52c0c08c6060c5c0d9e Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sun, 22 Apr 2001 23:20:42 +0000 Subject: /SET indent_always - should we indent the long words that are forcibly wrapped to next line. Default is ON. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1456 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-text/gui-windows.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/fe-text/gui-windows.c') diff --git a/src/fe-text/gui-windows.c b/src/fe-text/gui-windows.c index 57a2b488..f25a12a6 100644 --- a/src/fe-text/gui-windows.c +++ b/src/fe-text/gui-windows.c @@ -45,7 +45,8 @@ static GUI_WINDOW_REC *gui_window_init(WINDOW_REC *window, gui->parent = parent; gui->view = textbuffer_view_create(textbuffer_create(), window->width, window->height, - settings_get_int("indent")); + settings_get_int("indent"), + settings_get_bool("indent_always")); return gui; } @@ -283,7 +284,8 @@ static void read_settings(void) WINDOW_REC *rec = tmp->data; textbuffer_view_set_default_indent(WINDOW_GUI(rec)->view, - settings_get_int("indent")); + settings_get_int("indent"), + settings_get_bool("indent_always")); } special_vars_add_signals(prompt, 4, funcs); @@ -296,6 +298,7 @@ void gui_windows_init(void) { settings_add_bool("lookandfeel", "autostick_split_windows", TRUE); settings_add_int("lookandfeel", "indent", 10); + settings_add_bool("lookandfeel", "indent_always", FALSE); settings_add_str("lookandfeel", "prompt", "[$[.15]T] "); settings_add_str("lookandfeel", "prompt_window", "[$winname] "); -- cgit v1.2.3