(rline) don't fill input line with spaces if there's no right prompt

This commit is contained in:
K Lange 2021-01-20 22:23:36 +09:00
parent 1cbe2d1857
commit 2d87fc2a68

View File

@ -1353,7 +1353,7 @@ static void render_line(void) {
set_colors(COLOR_FG, COLOR_BG);
if (show_right_side) {
if (show_right_side && prompt_right_width) {
/* Fill to end right hand side */
for (; j < width + offset - prompt_width_calc; ++j) {
printf(" ");