File src/modes/cmdline.c changed (mode: 100644) (index 1ceacad29..3179251d7) |
... |
... |
input_line_changed(void) |
325 |
325 |
{ |
{ |
326 |
326 |
curr_view->top_line = input_stat.old_top; |
curr_view->top_line = input_stat.old_top; |
327 |
327 |
curr_view->list_pos = input_stat.old_pos; |
curr_view->list_pos = input_stat.old_pos; |
|
328 |
|
if(prev_mode == VISUAL_MODE) |
|
329 |
|
{ |
|
330 |
|
update_visual_mode(); |
|
331 |
|
} |
328 |
332 |
} |
} |
329 |
333 |
else |
else |
330 |
334 |
{ |
{ |
|
... |
... |
input_line_changed(void) |
372 |
376 |
free(p); |
free(p); |
373 |
377 |
} |
} |
374 |
378 |
|
|
375 |
|
if(prev_mode == VISUAL_MODE) |
|
376 |
|
{ |
|
377 |
|
update_visual_mode(); |
|
378 |
|
} |
|
379 |
|
else if(prev_mode != MENU_MODE) |
|
|
379 |
|
if(prev_mode != MENU_MODE && prev_mode != VISUAL_MODE) |
380 |
380 |
{ |
{ |
381 |
381 |
draw_dir_list(curr_view, curr_view->top_line); |
draw_dir_list(curr_view, curr_view->top_line); |
382 |
382 |
move_to_list_pos(curr_view, curr_view->list_pos); |
move_to_list_pos(curr_view, curr_view->list_pos); |
383 |
383 |
} |
} |
384 |
|
else |
|
|
384 |
|
else if(prev_mode != VISUAL_MODE) |
385 |
385 |
{ |
{ |
386 |
386 |
menu_redraw(); |
menu_redraw(); |
387 |
387 |
} |
} |
File src/modes/visual.h changed (mode: 100644) (index e1c89f3d9..8ba7f89d3) |
25 |
25 |
void init_visual_mode(int *key_mode); |
void init_visual_mode(int *key_mode); |
26 |
26 |
void enter_visual_mode(int restore_selection); |
void enter_visual_mode(int restore_selection); |
27 |
27 |
void leave_visual_mode(int save_msg, int goto_top, int clean_selection); |
void leave_visual_mode(int save_msg, int goto_top, int clean_selection); |
28 |
|
/* Should be used to ask visual mode to redraw file list correctly. */ |
|
|
28 |
|
/* Should be used to ask visual mode to redraw file list correctly. |
|
29 |
|
* Intented to be used after setting list position from side. */ |
29 |
30 |
void update_visual_mode(void); |
void update_visual_mode(void); |
30 |
31 |
int find_vpattern(FileView *view, const char *pattern, int backward); |
int find_vpattern(FileView *view, const char *pattern, int backward); |
31 |
32 |
|
|