Skip to content

Commit

Permalink
Remove redundant call to ncurses set_tabsize()
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
krobelus committed Jan 6, 2023
1 parent 6a3eb94 commit 9b69b60
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/display.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9b69b60

Please sign in to comment.