msteveb/linenoise — pull request #2 by devurandom (2012-11-02 09:55:12+00:00)
Title: Allow tab-completion only at the end of line and replace magic number

Currently tab-completion may take place at arbitrary cursor positions, but there is no way to figure out the cursor position from within the line completion code, effectively preventing sensible completion at that place. Hence I limited tab-completion to the end of line, to prevent user confusion.