Skip to content

Commit 8b4b441

Browse files
committed
no autocompletion -- too heavy
1 parent d179ab5 commit 8b4b441

File tree

2 files changed

+0
-62
lines changed

2 files changed

+0
-62
lines changed

lib/Boris/Autocompletion.php

Lines changed: 0 additions & 52 deletions
This file was deleted.

lib/Boris/ReadlineClient.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,6 @@ public function start($prompt, $historyFile)
5252
$buf = '';
5353
$lineno = 1;
5454

55-
$auto = new Autocompletion();
56-
readline_completion_function(function($string, $index) use ($auto)
57-
{
58-
$info = readline_info();
59-
return $auto->complete(array(
60-
'line' => substr($info['line_buffer'], 0, $info['end']),
61-
'cursor' => $info['point']
62-
));
63-
});
64-
6555
for (;;) {
6656
$this->_clear = false;
6757
$line = readline(sprintf('[%d] %s', $lineno, ($buf == '' ? $prompt : str_pad('*> ', strlen($prompt), ' ', STR_PAD_LEFT))));

0 commit comments

Comments
 (0)