Skip to content
This repository has been archived by the owner on Oct 21, 2022. It is now read-only.

Visual mode selection doesn't include character under cursor #22

Open
mpereira opened this issue Feb 1, 2014 · 2 comments
Open

Visual mode selection doesn't include character under cursor #22

mpereira opened this issue Feb 1, 2014 · 2 comments
Labels

Comments

@mpereira
Copy link

mpereira commented Feb 1, 2014

Expected behavior: evaluating an arbitrary unit of code selected with the visual mode requires selecting exactly the code users want to evaluate.

Actual behavior: evaluating an arbitrary unit of code selected with the visual mode requires users to select one character further, unless an exception is throw. The exception thrown is related to malformed selections being evaluated.

Demonstration:
lighttable_eval_selection

Light Table 0.6.2/Vim plugin 0.0.2

@cldwalker
Copy link
Member

I've also been experiencing this bug, specifically with v%. This behavior appears to be an issue in vanilla CodeMirror which is what LT uses under the hood. To see for yourself, try their vim demo. A peculiar thing about this bug is that the selection doesn't effect yanking e.g. v%y but it does effect LT's ability to eval. Please report this upstream.

@cldwalker
Copy link
Member

Checked the latest demo and this seems to be fixed upstream. Once we can upgrade (#45), this should be fixed

@cldwalker cldwalker changed the title Evaluating an arbitrary unit of code selected with the visual mode requires one character further to be selected Visual mode selection doesn't include character under cursor Feb 6, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants