--- gdb/completer.c.orig 2016-05-10 14:11:58.546188879 +0200 +++ gdb/completer.c 2016-05-10 14:12:22.899187374 +0200 @@ -1767,6 +1767,8 @@ return displayer->width; } +_rl_completion_prefix_display_length=0; +rl_sort_completion_matches=1; extern int _rl_completion_prefix_display_length; extern int _rl_print_completions_horizontally;