Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

c deletes first element of line #1302

Closed
xlaech opened this issue Feb 15, 2017 · 8 comments
Closed

c deletes first element of line #1302

xlaech opened this issue Feb 15, 2017 · 8 comments

Comments

@xlaech
Copy link
Contributor

xlaech commented Feb 15, 2017

Please thumbs-up 👍 this issue if it personally affects you! You can do this by clicking on the emoji-face on the top right of this post. Issues with more thumbs-up will be prioritized.


What did you do?

Use change (c) together with a selection until the first symbol of a line

e.g.:
["test|haha", "jojo"]
press "vj0c"

This also effects #1300

What did you expect to happen?

the selection without the first j of the second line get deleted and insert mode is entered

What happened instead?

The j also got deleted

Technical details:

  • VSCode Version: 1.9.1
  • VsCodeVim Version: 0.5.3
  • OS: Windows 10
@johnfn johnfn closed this as completed in 5ee3fe3 Feb 15, 2017
@Chillee
Copy link
Member

Chillee commented Apr 24, 2017

Is this actually a bug? Nvim seems to do the exact same behavior as what's reported in the bug.

@johnfn
Copy link
Member

johnfn commented Apr 24, 2017

@Chillee I'm so confused. I was sure this was a legitimate bug, but now I can't seem to reproduce the behavior that OP says is correct!

@xlaech
Copy link
Contributor Author

xlaech commented Apr 24, 2017

@johnfn If you checkout before the commit it works? oO

@johnfn
Copy link
Member

johnfn commented Apr 24, 2017

Oh no I mean, I can't reproduce the behavior in Vim.

@xlaech
Copy link
Contributor Author

xlaech commented Apr 24, 2017

VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Apr 23 2017 19:48:19)
MS-Windows 32 Bit Konsolen-Version

Here i can do this
["ab|cdefg","abcdefg"]
-> vj0c
["ab|abcdefg"]

Before the patch the result would have been:
["ab|bcdefg"]

What do you get?

@Chillee
Copy link
Member

Chillee commented Apr 24, 2017

For me, on both VIM version 8.0.427 and NVIM 0.1.7 on arch, I get ["ab|bcdefg"].

@xconverge
Copy link
Member

VIM 8.0.586 on Win10x64 I get ["ab|bcdefg"] as well. @xlaech can you try with vim -u to not load any of your settings

@xlaech
Copy link
Contributor Author

xlaech commented Apr 25, 2017

I will try on thursday.
@Chillee I get the same on mac

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants