-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
row
and col
fields in CursorFrame
seem to be swapped.
#3542
Comments
Could you make a gif of this behavior? Would help. Appreciated. |
I have made a pull request to fix this, but this is a breaking change, and I don't know how do you handle those. |
ArtBIT
added a commit
to ArtBIT/hyper
that referenced
this issue
Mar 27, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is Vanilla
Issue
The
CursorFrame
object, returned by theonCursorMove
callback, seem to haverow
andcol
swapped.On the very first line of the terminal,
col
has a value of0
, androw
has the value of23
.If I hit enter, the
col
has a value of1
, androw
has the value of23
.y
coordinate should be mapped torow
, andx
coordinate should be mapped tocol
, not the other way around as in: https://github.com/zeit/hyper/blob/8733ecc84ac63c49f82bba868bbd8dcb6e27455b/lib/components/term.js#L177The text was updated successfully, but these errors were encountered: