In ipythons vi readline editing mode, commands dw, de, dd does not work as intended.

Bug #847677 reported by Tom Bjerck
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ipython (Ubuntu)
New
Undecided
Unassigned

Bug Description

$ lsb_release -rd
Description: Ubuntu 11.04
Release: 11.04

$ ipython -Version
0.10.1

$ apt-cache policy ipython
ipython:
  Installed: 0.10.1-1ubuntu0.1
  Candidate: 0.10.1-1ubuntu0.1
  Version table:
 *** 0.10.1-1ubuntu0.1 0
        500 http://archive.ubuntu.com/ubuntu/ natty-updates/universe amd64 Packages
        100 /var/lib/dpkg/status
     0.10.1-1 0
        500 http://archive.ubuntu.com/ubuntu/ natty/universe amd64 Packages

Readline config:
$ cat ~/.inputrc
set editing-mode vi
set blink-matching-paren on

$ locale
LANG=en_US.UTF-8
LANGUAGE=en_US:en
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

Laptop is a Lenovo ideapad S10-3

If I start ipython in gnome terminal or xterm, write some code on a line, hit esc and try to edit the line with editing commands (vi editing mode), then movement commands work fine, but deletion commands like "dw" and "de" needs "dww" and "dee" instead. "dd" does not work even with an extra letter.

Readline in bash command line works as normal.

I've tried removing ~/.ipython and logging into another user account, but the problem persists.

Revision history for this message
Tom Bjerck (tom-bjerck) wrote :

The extra letter needed in the editing commands can be any other letter, and the extra letter is also executed. So if I input "dw" in editing mode nothing happens, but if I add "l" a word is deleted and the cursor moved to the right. Seems like editing commands beginning with the letter "d" is delayed in a buffer.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.