Skip to content
This repository has been archived by the owner on Nov 3, 2020. It is now read-only.

Cursor occasionally jumps to the bottom of the editor #303

Open
orta opened this issue May 1, 2016 · 1 comment
Open

Cursor occasionally jumps to the bottom of the editor #303

orta opened this issue May 1, 2016 · 1 comment
Labels

Comments

@orta
Copy link
Member

orta commented May 1, 2016

This one is hard to determine. My best guess ATM is that it could be when we overwrite from the background, which moves the cursor down because it sets the editor's stringValue property.

@orta orta added the bug label May 1, 2016
@orta orta modified the milestone: Podfile Editing May 1, 2016
@orta
Copy link
Member Author

orta commented May 1, 2016

Looks related to this:

// MARK: - CPUserProjectDelegate
extension CPPodfileEditorViewController: CPUserProjectDelegate {

  func contentDidChangeinUserProject(userProject: CPUserProject) {
    print("contentDidChangeinUserProject")

    editor.string = userProject.contents

    // Passing the message on to the syntax checker
    syntaxChecker.textDidChange(NSNotification(name: "", object: nil))
  }
}

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

No branches or pull requests

1 participant