Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Conversation

@njx
Copy link

@njx njx commented May 3, 2013

...in code hints to make them work in inline editors because of #1688. Sigh.

Fixes #3709.

To @eztierney for review. It looks like this is the single place where JS code hints actually edits the document, so I think this is the only place we have to patch this up. Let me know if there's another place we might have to do this fix.

…) in code hints to make them work in inline editors because of #1688.
@ghost ghost assigned eztierney May 3, 2013
@njx
Copy link
Author

njx commented May 3, 2013

/cc @dangoor, just FYI as something to watch out for in code hint providers. @adrocknaphobia -- we should really bring the "migrate to CodeMirror doc-linking" story (https://trello.com/c/cRAl0YHB) higher on the backlog to fix this issue once and for all...

@eztierney
Copy link
Contributor

yeah, I think this is the only place we do replaceRange.

Merging

eztierney added a commit that referenced this pull request May 3, 2013
Hack yet another place where we need to use _codeMirror.replaceRange()...
@eztierney eztierney merged commit 60dbbce into master May 3, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

in Quick Edit, if hit tab to accept JS code hint, completion chars are added twice

3 participants