File tree Expand file tree Collapse file tree 1 file changed +5
-10
lines changed
Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -66,9 +66,8 @@ public function __construct($output)
6666 public function setPrompt ($ prompt )
6767 {
6868 $ this ->prompt = $ prompt ;
69- $ this ->redraw ();
7069
71- return $ this ;
70+ return $ this -> redraw () ;
7271 }
7372
7473 /**
@@ -85,9 +84,8 @@ public function setPrompt($prompt)
8584 public function setEcho ($ echo )
8685 {
8786 $ this ->echo = !!$ echo ;
88- $ this ->redraw ();
8987
90- return $ this ;
88+ return $ this -> redraw () ;
9189 }
9290
9391 /**
@@ -105,9 +103,8 @@ public function setMove($move)
105103 $ this ->move = !!$ move ;
106104
107105 $ this ->linepos = $ this ->strlen ($ this ->linebuffer );
108- $ this ->redraw ();
109106
110- return $ this ;
107+ return $ this -> redraw () ;
111108 }
112109
113110 /**
@@ -139,9 +136,8 @@ public function setInput($input)
139136 {
140137 $ this ->linebuffer = $ input ;
141138 $ this ->linepos = $ this ->strlen ($ this ->linebuffer );
142- $ this ->redraw ();
143139
144- return $ this ;
140+ return $ this -> redraw () ;
145141 }
146142
147143 /**
@@ -370,9 +366,8 @@ public function moveCursorTo($n)
370366 }
371367
372368 $ this ->linepos = $ n ;
373- $ this ->redraw ();
374369
375- return $ this ;
370+ return $ this -> redraw () ;
376371 }
377372
378373 /**
You can’t perform that action at this time.
0 commit comments