ソースを参照

Set attrs in a go

master
Arun Prakash Jana 5年前
コミット
2b11601f89
この署名に対応する既知のキーがデータベースに存在しません GPGキーID: A75979F35C080412
1個のファイルの変更1行の追加4行の削除
  1. +1
    -4
      src/nnn.c

+ 1
- 4
src/nnn.c ファイルの表示

@@ -3196,10 +3196,7 @@ static void print_time(const time_t *timep)
static void printent(const struct entry *ent, uint namecols, bool sel)
{
char ind = get_ind(ent->mode, FALSE);
int attrs = sel ? A_REVERSE : 0;

if (ind == '@' || (ent->flags & HARD_LINK))
attrs |= A_DIM;
int attrs = ((ind == '@' || (ent->flags & HARD_LINK)) ? A_DIM : 0) | (sel ? A_REVERSE : 0);

if (!ind)
++namecols;


読み込み中…
キャンセル
保存