1
1

* screen.c (do_search): Use case-insensitive search if and only

if the sort order is case-insensitive.
Suggested by Bulia Byak <bulia@dr.com>
Этот коммит содержится в:
Pavel Roskin 2003-01-20 14:18:29 +00:00
родитель f3342d126e
Коммит 6bf1782b77
2 изменённых файлов: 18 добавлений и 8 удалений

Просмотреть файл

@ -1,3 +1,9 @@
2003-01-20 Pavel Roskin <proski@gnu.org>
* screen.c (do_search): Use case-insensitive search if and only
if the sort order is case-insensitive.
Suggested by Bulia Byak <bulia@dr.com>
2003-01-19 Pavel Roskin <proski@gnu.org> 2003-01-19 Pavel Roskin <proski@gnu.org>
* dir.c (do_load_dir): Remove dotdot_found - handle_dirent() * dir.c (do_load_dir): Remove dotdot_found - handle_dirent()

Просмотреть файл

@ -1881,7 +1881,11 @@ do_search (WPanel *panel, int c_code)
break; break;
wrapped = 1; wrapped = 1;
} }
if (STRNCOMP (panel->dir.list [i].fname, panel->search_buffer, l) == 0){ if (panel->
case_sensitive
? (strncmp (panel->dir.list[i].fname, panel->search_buffer, l)
== 0) : (g_strncasecmp (panel->dir.list[i].fname,
panel->search_buffer, l) == 0)) {
unselect_item (panel); unselect_item (panel);
panel->selected = i; panel->selected = i;
select_item (panel); select_item (panel);