Don't autosuggest in builtin_read

https://github.com/fish-shell/fish-shell/issues/29
This commit is contained in:
ridiculousfish
2012-11-18 02:43:35 -08:00
parent c9c2fc5ee3
commit dc8cc39bc8
3 changed files with 20 additions and 7 deletions

View File

@@ -2327,7 +2327,9 @@ static int builtin_read( parser_t &parser, wchar_t **argv )
reader_set_highlight_function( &highlight_shell );
reader_set_test_function( &reader_shell_test );
}
/* No autosuggestions in builtin_read */
reader_set_allow_autosuggesting(false);
reader_set_buffer( commandline, wcslen( commandline ) );
proc_push_interactive( 1 );