mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-03 23:11:14 -03:00
Implement and document new -P / --paging-mode flags to commandline, to support new
pager
This commit is contained in:
12
reader.cpp
12
reader.cpp
@@ -3872,7 +3872,17 @@ int reader_search_mode()
|
||||
return -1;
|
||||
}
|
||||
|
||||
return !!data->search_mode;
|
||||
return !! data->search_mode;
|
||||
}
|
||||
|
||||
int reader_has_pager_contents()
|
||||
{
|
||||
if (!data)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
||||
return data->current_page_rendering.screen_data.empty() ? 1 : 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user