Package: fish
Version: 2.4.0-1
Severity: normal

When I delete a word with M-d (Alt + D), Fish ignores single-letter
words under the cursor. For example, if I've typed

        ~> ls dir1 dir2 dir3
              ^

and have my cursor at the marked ^, M-d deletes the word `dir1`:

        ~> ls  dir2 dir3
              ^

However, if the arguments are single letters--e.g.,

        ~> ls a b c
              ^

M-d deletes both `a` and `b`:

        ~> ls  c
              ^

This behavior does not appear terminal-linked; I can reproduce both in
xterm and in rxvt-unicode. It also does not occur if I have my cursor
on the space before the letter: M-d on

        ~> ls a b c
             ^

yields

        ~> ls b c
             ^

as expected.

-- System Information:
Debian Release: 9.3
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.13.0-0.bpo.1-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages fish depends on:
ii  bc                                  1.06.95-9+b3
ii  dpkg                                1.18.24
ii  fish-common                         2.4.0-1
ii  google-chrome-stable [www-browser]  63.0.3239.108-1
ii  libc6                               2.24-11+deb9u1
ii  libgcc1                             1:6.3.0-18
ii  libncurses5                         6.0+20161126-1+deb9u1
ii  libpcre2-32-0                       10.22-3
ii  libstdc++6                          6.3.0-18
ii  libtinfo5                           6.0+20161126-1+deb9u1

Versions of packages fish recommends:
ii  xsel  1.2.0-2+b1

Versions of packages fish suggests:
pn  doc-base  <none>

-- no debconf information

Reply via email to