From: Kuba <lxkuba@wp.pl>
To: zsh-workers@zsh.org
Subject: [zsh bug report] vi-change-whole-line does not kill whole line in some cases
Date: Sun, 2 Dec 2018 19:15:11 +0100 [thread overview]
Message-ID: <CAOnkW9ZFz4zxOhqu=udQsv3OS_pEq7SN2QNH4AH59Vsvnq1x5w@mail.gmail.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 692 bytes --]
Hi,
I believe I found a bug in `vi-change-whole-line`.
Minimal zshrc allowing to reproduce the issue:
```
bindkey -v
```
## Steps to reproduce:
1. type 2 words, for example `word1 word2`
2. enter vicmd mode and move cursor to the beginning of first word (`esc`
`0`)
3. use `vi-change` to change word then go back to vicmd (`c` `w` `esc`)
4. use `vi-change-whole-line`
## Expected result:
Kill the current line and enter insert mode.
## Actual result:
The line is killed but the cursor is positioned one place to the right
making the line not empty (line contains single space)
I attach gif recording presenting the issue.
zsh version: 5.6.2 (x86_64-debian-linux-gnu)
All the best,
Kuba
[-- Attachment #1.2: Type: text/html, Size: 1114 bytes --]
[-- Attachment #2: zsh_bug1.gif --]
[-- Type: image/gif, Size: 53185 bytes --]
next reply other threads:[~2018-12-02 19:15 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-02 18:15 Kuba [this message]
2018-12-03 8:11 ` Jun T
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAOnkW9ZFz4zxOhqu=udQsv3OS_pEq7SN2QNH4AH59Vsvnq1x5w@mail.gmail.com' \
--to=lxkuba@wp.pl \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).