← Commit list

2c24bb80f

Eric Andersen
Eric Andersen
2003-01-02
SOURCE BUG Duration: 2s

Subject

Fix tab-tab listing of files so it properly reflects current terminal width. -Erik

SOURCE BUG

This commit was genuinely broken at the time (not related to our build system): sysdeps/linux/Config.in "fileutils/Config.in" dosyasini kaynak gosteriyor ama bu dosya repoda hic var olmadi (2002-12-05 - 2003-02-15 arasi orijinal yazar hatasi, 3238ea167 ile duzeltildi)

→ Bu hatanin tam hikayesini ve duzeltme diffini gor

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Debian 14.2.0-19) 14.2.0

—

Build Log

(log yok)

Commit Diff GitHub →

shell/cmdedit.c+2 -3
@@ -1088,14 +1088,13 @@ static void input_tab(int *lastWasTab)
if (l < 14)
l = 14;
printf("%-14s ", matches[i]);
+ col+=l;
if ((l += 2) > 16)
while (l % 16) {
putchar(' ');
l++;
}
- col += l;
- col -= (col / cmdedit_termw) * cmdedit_termw;
- if (col > 60 && matches[i + 1] != NULL) {
+ if (col > (cmdedit_termw-l-l) && matches[i + 1] != NULL) {
putchar('\n');
col = 0;
}