Skip to content

Commit 45fb71c

Browse files
committed
readline: keep tab completions visible with multiline prompts
1 parent 878cf3a commit 45fb71c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/internal/readline/interface.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -780,6 +780,9 @@ class Interface extends InterfaceConstructor {
780780
output += '\r\n\r\n';
781781
}
782782
this[kWriteToOutput](output);
783+
if (StringPrototypeIncludes(this[kPrompt], '\n') || this[kIsMultiline]) {
784+
this.prevRows = 0;
785+
}
783786
this[kRefreshLine]();
784787
}
785788

0 commit comments

Comments
 (0)