mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-10 09:41:16 -03:00
Clean up reader history search
Factor the history search fields into a new class. As a side effect, this shares the deduplication logic, so that token search no longer returns duplicates. Fixes #4795
This commit is contained in:
@@ -422,11 +422,11 @@ int builtin_commandline(parser_t &parser, io_streams_t &streams, wchar_t **argv)
|
||||
}
|
||||
|
||||
if (search_mode) {
|
||||
return !reader_search_mode();
|
||||
return reader_is_in_search_mode() ? 0 : 1;
|
||||
}
|
||||
|
||||
if (paging_mode) {
|
||||
return !reader_has_pager_contents();
|
||||
return reader_has_pager_contents() ? 0 : 1;
|
||||
}
|
||||
|
||||
switch (buffer_part) {
|
||||
|
||||
Reference in New Issue
Block a user