mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
9bef2fd11e
Add code to linenoise to do what readline was doing. When tab is hit, we need to search backwards from the insertion point for a break character (we're using " =+-/\\*?\"'`&<>;|@{([])}" for now) and only pass the characters between that point and the cursor position to the completion routine. When it gives us possible completions, we need to insert them in place of the string we extracted, which makes completion work when not at the left margin and even when inside another expression. Linenoise was passing the whole input line and substituting the replacement text for the entire line. |
||
---|---|---|
.. | ||
js-1.7 | ||
linenoise | ||
pcre-7.4 | ||
snappy | ||
pcre.py | ||
README | ||
sm.py | ||
snappy.py |
linenoise when making changes here, also publish to http://github.com/erh/linenoise 6cdc775807e57b2c3fd64bd207814f8ee1fe35f3