From 4663133871c1fb9b77e0d94a70fba2101787d1c0 Mon Sep 17 00:00:00 2001 From: Elden Tyrell Date: Mon, 16 Oct 2017 03:50:11 -0700 Subject: [PATCH] correct off-by-one error in initial tabstops so emacs renders properly --- kitty/screen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/screen.c b/kitty/screen.c index 13a2da093..d5e62e4bc 100644 --- a/kitty/screen.c +++ b/kitty/screen.c @@ -28,7 +28,7 @@ static inline void init_tabstops(bool *tabstops, index_type count) { // In terminfo we specify the number of initial tabstops (it) as 8 for (unsigned int t=0; t < count; t++) { - tabstops[t] = (t+1) % 8 == 0 ? true : false; + tabstops[t] = (t+0) % 8 == 0 ? true : false; } }