[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-readline] Readline vi-mode doesn't reach end of line
From: |
James Bunton |
Subject: |
[Bug-readline] Readline vi-mode doesn't reach end of line |
Date: |
Wed, 21 Nov 2007 18:35:56 +1100 |
User-agent: |
Mutt/1.5.16 (2007-06-09) |
Hi,
I'm using bash 3.2 in Vi mode, I have 'set editing-mode vi' in my
~/.inputrc
This works great except for one problem. It can be easily reproduced:
1. Start with a blank line
2. Type several characters of text
3. Note that the cursor appears _after_ the last character at this point
4. Press the left arrow key once
5. Press the right arrow key, and notice the cursor does not move
That is, it's impossible to use the arrow keys in vi mode's insert mode to get
to the end of the line and insert new text. The only way to do this is with
the keyboard's end key or the 'A' command mode key.
The expected behaviour would be that you can indeed move past the last
character, just as you can in emacs mode, and in Vim (not sure about Vi).
I've attached a patch that implements this behaviour for me.
Thanks for your time :)
---
James
bash-fixvi.patch
Description: Text document
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug-readline] Readline vi-mode doesn't reach end of line,
James Bunton <=