Added braces to avoid warnings

This commit is contained in:
Pavel Roskin 1998-09-22 16:13:54 +00:00
parent bc16e858db
commit 65b035284a
1 changed files with 4 additions and 2 deletions

View File

@ -752,11 +752,12 @@ void show_tree (WTree *tree)
if (current->sublevel == topsublevel){
/* Top level directory */
if (tree->active && current == tree->selected_ptr)
if (tree->active && current == tree->selected_ptr) {
if (!use_colors && !tree->is_panel)
attrset (MARKED_COLOR);
else
attrset (SELECTED_COLOR);
}
/* Show full name */
addstr (name_trunc (current->name, tree_cols - 6));
@ -783,12 +784,13 @@ void show_tree (WTree *tree)
addch (ACS_HLINE);
noacs ();
if (tree->active && current == tree->selected_ptr)
if (tree->active && current == tree->selected_ptr) {
/* Selected directory -> change color */
if (!use_colors && !tree->is_panel)
attrset (MARKED_COLOR);
else
attrset (SELECTED_COLOR);
}
/* Show sub-name */
addch (' ');