Skip to content

Commit

Permalink
Make LineReaderImpl#getDisplayedBufferWithPrompts public, fixes #221
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodet committed Jan 29, 2018
1 parent c259d8d commit 7410619
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3458,7 +3458,12 @@ private void concat(List<AttributedString> lines, AttributedStringBuilder sb) {
sb.append(lines.get(lines.size() - 1));
}

private AttributedString getDisplayedBufferWithPrompts(List<AttributedString> secondaryPrompts) {
/**
* Compute the full string to be displayed with the left, right and secondary prompts
* @param secondaryPrompts a list to store the secondary prompts
* @return
*/
public AttributedString getDisplayedBufferWithPrompts(List<AttributedString> secondaryPrompts) {
AttributedString attBuf = getHighlightedBuffer(buf.toString());

AttributedString tNewBuf = insertSecondaryPrompts(attBuf, secondaryPrompts);
Expand Down

0 comments on commit 7410619

Please sign in to comment.