Skip to content

Commit

Permalink
Merge pull request #2426 from spnethw/fix_autocomplete_garbage_show_a…
Browse files Browse the repository at this point in the history
…ll_if_ambiguous

fix #2425: autocomplete garbage if show-all-if-ambiguous is On
  • Loading branch information
elfmz authored Oct 13, 2024
2 parents a8f24ce + 6241d8c commit 9213744
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions far2l/src/vt/vtcompletor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ static const char *vtc_inputrc = "set completion-query-items 0\n"
"set colored-completion-prefix off\n"
"set page-completions off\n"
"set colored-stats off\n"
"set colored-completion-prefix off\n";
"set colored-completion-prefix off\n"
"set show-all-if-ambiguous off\n"
"set show-all-if-unmodified off\n";

std::string VTSanitizeHistcontrol();

Expand Down Expand Up @@ -169,7 +171,6 @@ bool VTCompletor::TalkWithShell(const std::string &cmd, std::string &reply, cons
std::string done = "K2Ld8Gfg"; // another most unique string in Universe
AvoidMarkerCollision(done, cmd); // if it still not enough unique
AvoidMarkerCollision(begin, cmd); // if it still not enough unique
//begin+= '\n';
// dont do that: done+= '\n'; otherwise proposed command is executed, see https://github.com/elfmz/far2l/issues/1244

std::string sendline = " PS1=''; PS2=''; PS3=''; PS4=''; PROMPT_COMMAND=''";
Expand Down

0 comments on commit 9213744

Please sign in to comment.