From 9b69b60d0ff77f753dabbd358d7dc885f4f36bf2 Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Sat, 15 Oct 2022 11:09:26 +0200 Subject: [PATCH] Remove redundant call to ncurses set_tabsize() ncurses defines a global variable called TABSIZE which is the number of columns occupied by a tab character. We set this option to the value of the tab-size option. I believe we never rely on TABSIZE because we always expand tabs to the appropriate number of spaces before passing them to ncurses. The following patches will potentially give each screen its own tab-size, which is not possible with the global TABSIZE, so we should not be using it anyway. --- src/display.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/display.c b/src/display.c index b2fe8b9c2..eff70761f 100644 --- a/src/display.c +++ b/src/display.c @@ -678,12 +678,6 @@ init_display(void) keyok(code, false); } #endif - -#if defined(NCURSES_VERSION_PATCH) && (NCURSES_VERSION_PATCH >= 20080119) - set_tabsize(opt_tab_size); -#else - TABSIZE = opt_tab_size; -#endif } static bool