mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-14 22:14:53 +00:00
Accepting an autosuggestion should clear the pager
This commit is contained in:
parent
ede3d422a0
commit
6ce74febc7
1 changed files with 6 additions and 0 deletions
|
@ -403,6 +403,9 @@ public:
|
||||||
/* Sets the command line contents, without clearing the pager */
|
/* Sets the command line contents, without clearing the pager */
|
||||||
static void reader_set_buffer_maintaining_pager(const wcstring &b, size_t pos);
|
static void reader_set_buffer_maintaining_pager(const wcstring &b, size_t pos);
|
||||||
|
|
||||||
|
/* Clears the pager */
|
||||||
|
static void clear_pager();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
The current interactive reading context
|
The current interactive reading context
|
||||||
*/
|
*/
|
||||||
|
@ -1564,6 +1567,9 @@ static void accept_autosuggestion(bool full)
|
||||||
{
|
{
|
||||||
if (! data->autosuggestion.empty())
|
if (! data->autosuggestion.empty())
|
||||||
{
|
{
|
||||||
|
/* Accepting an autosuggestion clears the pager */
|
||||||
|
clear_pager();
|
||||||
|
|
||||||
/* Accept the autosuggestion */
|
/* Accept the autosuggestion */
|
||||||
if (full)
|
if (full)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue