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

Editing expressions with negative integer values in them #168

Open
meurigbeynon opened this issue Dec 5, 2015 · 2 comments
Open

Editing expressions with negative integer values in them #168

meurigbeynon opened this issue Dec 5, 2015 · 2 comments
Assignees

Comments

@meurigbeynon
Copy link

When you're editing a scalar value in a formula which is preceded by a -, the cursor behaves oddly.
So when editing the expression

 carfloor4button is button with boxbx is car.boxbx - 40, boxby is car.boxby-20;

  you find that trying to change the second - to a + starts editing the following '20', whilst taking out the space between the '-' and the '40' and then trying to restore it results in '-4 0'
@knicos knicos self-assigned this Dec 5, 2015
@knicos
Copy link
Member

knicos commented Dec 5, 2015

Difficult to resolve. I've specifically bound the minus sign to the number in the highlighter in order to allow number dragging of negatives. If I don't then number dragging can't go negative easily... would require more work.

@knicos
Copy link
Member

knicos commented Dec 5, 2015

Note to self: perhaps use custom attributes on the span element.

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

No branches or pull requests

2 participants