Hello,
For long prompts (127 chars or longer), vi search mode does not
display the [/?] prompt prefix.
I've included a small program below demonstrating the issue, and a
very small patch fixing it.
#include <stdio.h>
#include <readline/readline.h>
int main(void)
{
rl_variable_bind("editing-mode", "vi");
//char prompt[126]; /* displays search prefix */
char prompt[127]; /* does not */
int i;
for ( i = 0; i < sizeof(prompt)-1; i++ ) {
prompt[i] = 'x';
}
prompt[sizeof(prompt)-1] = '\0';
while (1) {
char *line = readline(prompt);
add_history(line);
}
}
Thank you!