| Summary: | Content assist should not autotrigger at EOL of //line comment | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Mark Macdonald <mamacdon> |
| Component: | Editor | Assignee: | Elijah El-Haddad <elijahe> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | grant_gayed |
| Version: | 5.0 | Flags: | grant_gayed:
review+
|
| Target Milestone: | 5.0 RC1 | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
|
Description
Mark Macdonald
I believe that contentAssist:615 should be calling styleAccessor.getStyles() with caretOffset-1, similar to how it's used a few lines above to compute currentChar, since what's needed is the context where the '.' was typed. As a more fundamental example, starting with a completely empty editor and pressing '.' should call getStyles() with offset 0, since the '.' is at offset 0 (it currently calls with 1). Fix pushed to github: https://github.com/elijahe/orion.client/commit/6a2bebec08a7da090730fa6131ec3e52441f0abb Fix released as-is > 20140129. |