Skip to content

Commit

Permalink
Merge branch 'fix-drawing-inactive-mark'
Browse files Browse the repository at this point in the history
Fix inactive mark (*) not being drawn sometimes.
  • Loading branch information
xaizek committed Jul 28, 2019
2 parents d140873 + 3117193 commit 12654cc
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions src/ui/fileview.c
Expand Up @@ -829,13 +829,20 @@ fview_cursor_redraw(view_t *view)

/* Always redrawing the cell won't hurt and will account for the case when
* selection state of item under the cursor has changed. */
if(!ui_view_displays_columns(view))
if(view == other_view)
{
/* Inactive cell in ls-like view usually takes less space than an active
* one. Need to clear the cell before drawing over it. */
redraw_cell(view, view->top_line, view->curr_line, 0);
fview_draw_inactive_cursor(view);
}
else
{
if(!ui_view_displays_columns(view))
{
/* Inactive cell in ls-like view usually takes less space than an active
* one. Need to clear the cell before drawing over it. */
redraw_cell(view, view->top_line, view->curr_line, 0);
}
redraw_cell(view, view->top_line, view->curr_line, 1);
}
redraw_cell(view, view->top_line, view->curr_line, 1);
}

void
Expand Down

0 comments on commit 12654cc

Please sign in to comment.