xaizek / vifm (License: GPLv2+) (since 2018-12-07)
Vifm is a file manager with curses interface, which provides Vi[m]-like environment for managing objects within file systems, extended with some useful ideas from mutt.
Commit a6d2a11e48ee296d2f1a197709048adb74800b0e

#SF3536660. Fix selection on search in vmode
Only when 'incsearch' is off.
And selection on n and N keys regardless of 'incsearch' state.
Thanks to ranousse.
Author: xaizek
Author date (UTC): 2012-06-22 18:08
Committer name: xaizek
Committer date (UTC): 2012-06-22 19:52
Parent(s): f4606d3ad64f6a1ef6284c98595d98a38b8b97ec
Signing key:
Tree: 9188e000f2af935160a031c69b51ed46dd2dff58
File Lines added Lines deleted
ChangeLog 3 0
src/modes/cmdline.c 6 6
src/modes/visual.c 0 2
src/modes/visual.h 2 1
File ChangeLog changed (mode: 100644) (index 5d717a4ea..521422971)
79 79 Fixed restoring of cursor position in the other view if quick view was Fixed restoring of cursor position in the other view if quick view was
80 80 opened too. opened too.
81 81
82 Fixed selection of files on search in visual mode with 'incsearch' option
83 turned off or n and N keys regardless of 'incsearch' state.
84
82 85 0.7.2 to 0.7.3 0.7.2 to 0.7.3
83 86
84 87 Removed possibility of moving items in :file menu. Removed possibility of moving items in :file menu.
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.c changed (mode: 100644) (index 9606725da..841e5c698)
... ... find_vpattern(FileView *view, const char *pattern, int backward)
944 944 int result; int result;
945 945 int hls = cfg.hl_search; int hls = cfg.hl_search;
946 946
947 erase_selection(view);
948
949 947 cfg.hl_search = 0; cfg.hl_search = 0;
950 948 result = find_pattern(view, pattern, backward, 0); result = find_pattern(view, pattern, backward, 0);
951 949 cfg.hl_search = hls; cfg.hl_search = hls;
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
Hints

Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://code.reversed.top/user/xaizek/vifm

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/vifm

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master