Code

Use function set_tabsize()
authorStefan Naewe <stefan.naewe@googlemail.com>
Sun, 12 Sep 2010 09:03:52 +0000 (11:03 +0200)
committerJonas Fonseca <fonseca@diku.dk>
Thu, 16 Sep 2010 01:02:15 +0000 (21:02 -0400)
this fixes the following compile error on cygwin:
tig.c: In function `init_display':
tig.c:7112: error: invalid lvalue in assignment

Signed-off-by: Stefan Naewe <stefan.naewe@googlemail.com>
Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
tig.c

diff --git a/tig.c b/tig.c
index 2a31ddd03b89507c1ecde2cfc788f1110a54eb15..e0e812c605128f15d40c104d8ba1373c51ff3a0e 100644 (file)
--- a/tig.c
+++ b/tig.c
@@ -7110,7 +7110,7 @@ init_display(void)
        keypad(status_win, TRUE);
        wbkgdset(status_win, get_line_attr(LINE_STATUS));
 
-       TABSIZE = opt_tab_size;
+       set_tabsize(opt_tab_size);
 
        term = getenv("XTERM_VERSION") ? NULL : getenv("COLORTERM");
        if (term && !strcmp(term, "gnome-terminal")) {