Vifon/autocomplete-ALL-the-things — pull request #5 by seletskiy (2014-07-09 15:31:57+00:00)
Title: Change highlight to text rendition and fix completion of words spanned across several lines

I've back on line, sorry for bothering you again. :innocent:

Current overlay implementation does not look too good for me, because it is simple black text on grayish background. I've changed it to XOR text rendition to get visualization same as selection. Now it basically uses reversed video style, which is better in any case and text color.

Also, I've found, that word on the boundary of two lines get's completed only partially, so I fixed it.

Alas, also I've noticed, that when completed word can not fit into one line on the prompt, then all buffer got scrolled up by one line to found some empty space on the bottom of the window to fit this too long line. It worked around by the shell automatically. And in that case highlight will mismatch actual text placement by one or several lines. I did not fix this issue because I didn't found beautiful and not too cluttered solution, so I just left things as they are. Maybe we should create issue for this.