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

Electric char auto-indentation doesn't work with multiple cursors #8434

Closed
peterflynn opened this issue Jul 17, 2014 · 2 comments
Closed

Electric char auto-indentation doesn't work with multiple cursors #8434

peterflynn opened this issue Jul 17, 2014 · 2 comments

Comments

@peterflynn
Copy link
Member

Start with this:

if (foo) {
    |
if (bar) {
    |
  1. Put a cursor where each '|' is (don't actually include the '|'s in the text)
  2. Type '}'

Result: Only the last one is back-indented properly:

if (foo) {
    }
if (bar) {
}

This is because Editor._checkElectricChars() isn't multi-cursor aware.

@dangoor
Copy link
Contributor

dangoor commented Jul 21, 2014

Reviewed medium priority to editor area. Called medium priority because one cursor may be off the screen and the user will be expecting consistent behavior between the cursors.

@prafulVaishnav
Copy link
Contributor

Fixed by PR #9387

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

No branches or pull requests

4 participants