Export to GitHub

hotwire-shell - issue #204

auto completion assumes cursor is at end


Posted on Jul 12, 2008 by Happy Kangaroo

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).

Status: Accepted

Labels:
Type-Defect Priority-Medium