diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2016-01-14 20:46:49 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2016-01-14 20:50:17 +0100 |
| commit | 0ade88d86e4fdfca01c0ff48fe82e2aa46c6130d (patch) | |
| tree | bbd8f79307cc5d487d28dfc5bc28dbb6dd283a2c /vis.c | |
| parent | fd340d7c5eb12b79139b5ea6e3f3f187783bf9f2 (diff) | |
| download | vis-0ade88d86e4fdfca01c0ff48fe82e2aa46c6130d.tar.gz vis-0ade88d86e4fdfca01c0ff48fe82e2aa46c6130d.tar.xz | |
vis: inline expand_tab
Diffstat (limited to 'vis.c')
| -rw-r--r-- | vis.c | 11 |
1 files changed, 0 insertions, 11 deletions
@@ -46,17 +46,6 @@ static Macro *macro_get(Vis *vis, enum VisMacro m); static void macro_replay(Vis *vis, const Macro *macro); -const char *expandtab(Vis *vis) { - static char spaces[9]; - int tabwidth = vis->tabwidth; - tabwidth = MIN(tabwidth, LENGTH(spaces) - 1); - for (int i = 0; i < tabwidth; i++) - spaces[i] = ' '; - spaces[tabwidth] = '\0'; - return vis->expandtab ? spaces : "\t"; -} - - /** window / file handling */ static void file_free(Vis *vis, File *file) { |
