XVim icon indicating copy to clipboard operation
XVim copied to clipboard

[a] and [x] are not working properly. (Append and delete character under cursor)

Open jojojames opened this issue 12 years ago • 5 comments
trafficstars

When I press a to append something, the cursor pops to the bottom of the page in insert mode.

When I press x to delete a character, it pops about half of my function and pastes it to the bottom of the file in insert mode.

Thanks for any help.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/900180-a-and-x-are-not-working-properly-append-and-delete-character-under-cursor?utm_campaign=plugin&utm_content=tracker%2F252770&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F252770&utm_medium=issues&utm_source=github).

jojojames avatar Feb 25 '13 05:02 jojojames

Hm... I totally don't know why this happens. I haven't had any similar behaviour.

Are you still having this problem?

JugglerShu avatar Mar 25 '13 04:03 JugglerShu

Yup, I've had it across multiple computers, both on my personal and on my work computer.

What's noticeable about it is that every command 'jitters' the screen, popping it to a certain position. An example would be using j or k to scroll the screen. Normally the screen doesn't move until you go to the last line number, but when it happens, the screen will pop as if it's doing jzz instead.

Only a is affected not A so I can still enter insert mode at the end of the line.

These days, I just restart xcode and it's back to normal for a while.

jojojames avatar Mar 25 '13 04:03 jojojames

http://tinypic.com/r/34qmg40/6

Video of it, this time I tried j and k, and it popped to the bottom.

jojojames avatar Mar 26 '13 02:03 jojojames

Thank you for the movie.

I haven't had such bug... But what I think is that it looks that the calculation of the insertion point or the view position is going wrong.

Does it happen even when you are editing small amount of text like 10 to 20 lines of code? (And also please check you are not having "placeholder" in it or it is not folded)

JugglerShu avatar Mar 26 '13 02:03 JugglerShu

I've never encountered it while editing small bits of code. I'm not sure about folds and not sure what you mean by placeholders. I do fold my code randomly, I guess I'll have to check specifically for that.

I think you're on to something about insertion though. In the video, you'll see me pop to the bottom many time, or try to enter insert mode, but failing.

jojojames avatar Mar 26 '13 03:03 jojojames