EmilyDirsh / hotwire-shell

Automatically exported from code.google.com/p/hotwire-shell
Other
0 stars 0 forks source link

auto completion assumes cursor is at end #204

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. cd /tmp
2. touch afile
3. touch anotherfile
4. type "mv a af " (note trailing space)
5. move cursor to after the first "a" and press tab

What is the expected output? What do you see instead?

Expect to get a completion pop up providing options to choose either afile
or anotherfile.  bash works this way.

Instead, the completer takes the "af" and completes that as "afile" and
moves the cursor forward by 4 positions.

In addition, the completer adds the "ile" after the trailing space, so you
end up with "mv a af ile " with the cursor position before the "i".

Using latest from svn (1297).

Original issue reported on code.google.com by dmi...@gmail.com on 12 Jul 2008 at 5:45