summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ui.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/ui.c b/ui.c
index 374fa93..e9ca3ef 100644
--- a/ui.c
+++ b/ui.c
@@ -384,9 +384,14 @@ static void wordWrap(WINDOW *win, const char *str) {
 	struct Style style = Reset;
 	while (*str) {
 		if (*str == '\t') {
-			waddch(win, ' ');
-			getyx(win, y, align);
-			str++;
+			if (align) {
+				waddch(win, '\t');
+				str++;
+			} else {
+				waddch(win, ' ');
+				getyx(win, y, align);
+				str++;
+			}
 		} else if (*str == ' ') {
 			getyx(win, y, x);
 			const char *word = &str[strspn(str, " ")];
tputting dataJohn Keeping 2014-06-28ui-log: ignore unhandled argumentsJohn Keeping 2014-06-28git: update for git 2.0Christian Hesse 2014-04-17remove trailing whitespaces from source filesChristian Hesse 2014-04-12git: update to 1.9.2Christian Hesse 2014-04-05Fix cgit_parse_url when a repo url is contained in another repo urlJulian Maurice 2014-03-20Makefile: use more reliable git tarball mirrorJason A. Donenfeld 2014-03-20git: update to 1.9.1Christian Hesse