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

Ctrl+right arrow skips too many tokens #670

@peterflynn

Description

@peterflynn

Start with this JS in Brackets:

function fn1() {
    myFunc("foo",bar);
}
obj.blah();
  1. Put the cursor at the beginning of the text
  2. Press ctrl+right arrow (or Mac, alt+right arrow) a few times

Result:
Sequence is: end of "myFunc" (before opening paren), end of "foo" (but before closing quote), end of "bar" (before closing paren)... and then skips to the end of "obj" (before the dot) on the next line

Expected:
In Sublime, the sequence is: end of "myFunc", start of "foo" (after opening quote), end of "foo", start of "bar" (after comma), end of "bar", end of line (after semicolon), start of next line (before curly brace), end of line (after curly brace), start of "obj", end of "obj" (before dot).

IntelliJ is the same.

Eclipse is the same (although by default it will also stop in the middle of "myFunc" due to the camelcasing).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions