From cca3c2f9dac22599c896334f235dcb7cabf2ca86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristian=20H=C3=B8gsberg?= Date: Wed, 20 Jun 2012 15:56:13 -0400 Subject: [PATCH] terminal: Fix tab expansion --- clients/terminal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clients/terminal.c b/clients/terminal.c index c5c206de..db9161ff 100644 --- a/clients/terminal.c +++ b/clients/terminal.c @@ -1765,13 +1765,13 @@ handle_special_char(struct terminal *terminal, char c) break; case '\t': while (terminal->column < terminal->width) { - if (terminal->tab_ruler[terminal->column]) break; if (terminal->mode & MODE_IRM) terminal_shift_line(terminal, +1); row[terminal->column].byte[0] = ' '; row[terminal->column].byte[1] = '\0'; attr_row[terminal->column] = terminal->curr_attr; terminal->column++; + if (terminal->tab_ruler[terminal->column]) break; } if (terminal->column >= terminal->width) { terminal->column = terminal->width - 1;