X Tutup
Skip to content

Filename expansion: Cycling completions and deleting #60

@ikanobori

Description

@ikanobori

Platform: Mac OS 10.6, Python 2.6.1

I think I might have found a bug with completion of filenames. On my Mac, if I type

>>> a="/

then press tab, I get

>>> a="/Applications/
┌──────────────────────────────────────────────────────────────┐
│/Applications/                /bin/                           │
│/cores/                       /dev/                           │
│/Developer/                   /etc/                           │
│/home/                        /Library/                       │
│/mach_kernel                  /net/                           │
│/Network/                     /opt/                           │
│/private/                     /sbin/                          │
│/System/                      /tmp/                           │
│/User Guides And Information/ /Users/                         │
│/usr/                         /var/                           │
│/Volumes/                                                     │
└──────────────────────────────────────────────────────────────┘

If I then delete the '/', and press tab again, I get

>>> a=/bin/
┌──────────────────────────────────────────────────────────────┐
│/Applications/                /bin/                           │
│/cores/                       /dev/                           │
│/Developer/                   /etc/                           │
│/home/                        /Library/                       │
│/mach_kernel                  /net/                           │
│/Network/                     /opt/                           │
│/private/                     /sbin/                          │
│/System/                      /tmp/                           │
│/User Guides And Information/ /Users/                         │
│/usr/                         /var/                           │
│/Volumes/                                                     │
└──────────────────────────────────────────────────────────────┘

Notice that the " has been lost. It looks like the editor still thinks it's in the mode of cycling over the original '/' completions, rather than identifying the completions of '/Applications', and so has managed to delete an extra character when switching to the next completion.

I shall have a look at the code myself, and see if I can propose a patch to fix this.


Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      X Tutup