Skip to content

Commit

Permalink
Allow setting prompt once readline is running, fixes #248
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodet committed Apr 3, 2018
1 parent 0c8bd46 commit e46f9f1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -932,12 +932,12 @@ protected Widget getWidget(Object binding) {
// Helper methods
//

protected void setPrompt(final String prompt) {
public void setPrompt(final String prompt) {
this.prompt = (prompt == null ? AttributedString.EMPTY
: expandPromptPattern(prompt, 0, "", 0));
}

protected void setRightPrompt(final String rightPrompt) {
public void setRightPrompt(final String rightPrompt) {
this.rightPrompt = (rightPrompt == null ? AttributedString.EMPTY
: expandPromptPattern(rightPrompt, 0, "", 0));
}
Expand Down

0 comments on commit e46f9f1

Please sign in to comment.