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

MoreDocument: selectionStart doesn't update upon document changes #1254

Closed
jamshark70 opened this issue Nov 16, 2014 · 3 comments
Closed

MoreDocument: selectionStart doesn't update upon document changes #1254

jamshark70 opened this issue Nov 16, 2014 · 3 comments
Labels
bug Issues that relate to unexpected/unwanted behavior. Don't use for PRs. env: SCIDE

Comments

@jamshark70
Copy link
Contributor

To reproduce:

  1. Create a new document and type in d = Document.current; -- run that.
  2. Run d.selectionStart
  3. Put the cursor above d.selectionStart and hit return a bunch of times
  4. Run the line again. You'd expect the selection start to be different because there's more text before it now. But the number is the same.
  5. Explicitly select the line and run it again. Now the selectionStart is updated.
@jamshark70 jamshark70 added bug Issues that relate to unexpected/unwanted behavior. Don't use for PRs. env: SCIDE labels Nov 16, 2014
@muellmusik
Copy link
Contributor

Thanks James, I'll take a look. I suspect this is on the IDE side. (Qt has a number of callbacks with somewhat overlapping functionality for text editor state changes, so probably just needs a tweak...)

muellmusik added a commit that referenced this issue Nov 16, 2014
This fixes Issue #1254

Signed-off-by: Scott Wilson <i@scottwilson.ca>
@muellmusik
Copy link
Contributor

Fixed by c008cb2

@jamshark70
Copy link
Contributor Author

Fix is good in Linux. Thanks for the quick fix, Scott!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues that relate to unexpected/unwanted behavior. Don't use for PRs. env: SCIDE
Projects
None yet
Development

No branches or pull requests

2 participants