From 92804cb1aa753fa1f5e9b588a4bd7125bc98ce49 Mon Sep 17 00:00:00 2001 From: dequis Date: Mon, 27 Aug 2018 00:01:47 -0300 Subject: [PATCH] gui-windows: make the wcwidth_impl global var into static --- src/fe-text/gui-windows.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/fe-text/gui-windows.c b/src/fe-text/gui-windows.c index 0ad4c921..e7f799c8 100644 --- a/src/fe-text/gui-windows.c +++ b/src/fe-text/gui-windows.c @@ -31,7 +31,7 @@ #include "gui-printtext.h" static int window_create_override; -int wcwidth_impl; +static int wcwidth_impl; static GUI_WINDOW_REC *gui_window_init(WINDOW_REC *window, MAIN_WINDOW_REC *parent) @@ -205,7 +205,8 @@ void gui_windows_reset_settings(void) { GSList *tmp; int old_wcwidth_impl = wcwidth_impl; - wcwidth_impl = settings_get_choice("wcwidth_implementation"); + + wcwidth_impl = settings_get_choice("wcwidth_implementation"); for (tmp = windows; tmp != NULL; tmp = tmp->next) { WINDOW_REC *rec = tmp->data;