diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2020-02-23 18:13:33 -0800 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2020-02-23 18:13:33 -0800 |
| commit | 2ab58f3d8c3172a1d045efb76010b88f3537af08 (patch) | |
| tree | 9ce74a3104d05d244166f4de6067c66a289e1dbd | |
| parent | 636fce8d4b6c3c222cc955a26e9193bcfadaf3c6 (diff) | |
Fixed color issue with column separator after '*' column
| -rw-r--r-- | columns.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -113,7 +113,9 @@ void col_ctime(bb_t *bb, entry_t *entry, char *buf, int width) { void col_selected(bb_t *bb, entry_t *entry, char *buf, int width) { (void)bb; (void)width; - strcpy(buf, IS_SELECTED(entry) ? SELECTED_INDICATOR : NOT_SELECTED_INDICATOR); + buf = stpcpy(buf, IS_SELECTED(entry) ? SELECTED_INDICATOR : NOT_SELECTED_INDICATOR); + buf = stpcpy(buf, entry == bb->files[bb->cursor] ? + CURSOR_COLOR : color_of(entry->info.st_mode)); } void col_perm(bb_t *bb, entry_t *entry, char *buf, int width) { |
