Package: rlwrap
Version: 0.37-1
Severity: normal
Tags: upstream

When the word completion list contains two valid words, one of which is a
prefix of another, typing <tab> completes the longer word, skipping over the
shorter.

Discovered while following the instructions at [0] for configuring rlwrap with
clojure.  The completion list contains "vec", "vector", and "vector?" for
example.  Entering "ve<tab><tab><tab>" yields "vector?" as the only completion,
consuming the other valid word completions.

A simpler artificial example:
$ cat words.txt
i
id
ide
idea
ideas
$ rlwrap -f words.txt cat

Repeatedly pressing <tab> will add one letter at a time until "ideas" is
produced, same for the next word, and so on.

Desired behavior with user input of "id<tab><tab><tab><tab>..." is to display
"id ide idea ideas" all as possible completions.

[0] http://en.wikibooks.org/wiki/Clojure_Programming/Getting_Started



-- System Information:
Debian Release: 6.0.3
  APT prefers proposed-updates
  APT policy: (500, 'proposed-updates'), (500, 'stable'), (101, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages rlwrap depends on:
ii  libc6                     2.11.2-10      Embedded GNU C Library: Shared lib
ii  libncurses5               5.7+20100313-5 shared libraries for terminal hand
ii  libreadline6              6.1-3          GNU readline and history libraries

rlwrap recommends no packages.

rlwrap suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to