Add command to temporarily suppress the autosuggestion feature

Autosuggestion will be automatically re-enabled next time a character is
inserted. An alternative implementation would require another command to
explicitly re-enable it.

Signed-off-by: Ian Munsie <darkstarsword@gmail.com>
This commit is contained in:
Ian Munsie
2012-06-27 18:37:48 +10:00
committed by ridiculousfish
parent 2b24eab26a
commit c8f86d94c9
3 changed files with 12 additions and 3 deletions

View File

@@ -3247,7 +3247,13 @@ const wchar_t *reader_readline()
break;
}
case R_SUPPRESS_AUTOSUGGESTION:
{
data->suppress_autosuggestion = true;
data->autosuggestion.clear();
reader_repaint();
}
/* Other, if a normal character, we add it to the command */
default: