File src/ui/fileview.c changed (mode: 100644) (index 2ba65b115..752457217) |
... |
... |
redraw_view(view_t *view) |
802 |
802 |
if(curr_stats.need_update == UT_NONE && !curr_stats.restart_in_progress && |
if(curr_stats.need_update == UT_NONE && !curr_stats.restart_in_progress && |
803 |
803 |
window_shows_dirlist(view)) |
window_shows_dirlist(view)) |
804 |
804 |
{ |
{ |
805 |
|
/* Make sure cursor is visible and relevant part of the view is displayed. */ |
|
|
805 |
|
/* Make sure cursor is visible and relevant part of the view is |
|
806 |
|
* displayed. */ |
806 |
807 |
(void)move_curr_line(view); |
(void)move_curr_line(view); |
|
808 |
|
/* Update cursor position cache as it might have been moved outside this |
|
809 |
|
* unit. */ |
|
810 |
|
(void)cache_cursor_pos(view); |
807 |
811 |
/* And then redraw the view unconditionally as requested. */ |
/* And then redraw the view unconditionally as requested. */ |
808 |
812 |
draw_dir_list(view); |
draw_dir_list(view); |
809 |
813 |
} |
} |
|
... |
... |
cache_cursor_pos(view_t *view) |
1840 |
1844 |
|
|
1841 |
1845 |
if(view->list_pos == view->last_seen_pos && |
if(view->list_pos == view->last_seen_pos && |
1842 |
1846 |
view->curr_line == view->last_curr_line && |
view->curr_line == view->last_curr_line && |
|
1847 |
|
view->last_curr_file != NULL && |
1843 |
1848 |
strcmp(view->last_curr_file, path) == 0) |
strcmp(view->last_curr_file, path) == 0) |
1844 |
1849 |
{ |
{ |
1845 |
1850 |
return 1; |
return 1; |