Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Soft wrapping breaks and duplicates lines in certain situations #688

@izuzak

Description

@izuzak

Soft wrapping breaks apart completely and creates a big mess if a certain sequence of actions is performed. I'm on OSX 10.8.4 and Atom 17.0.

To reproduce:

  1. Start Atom, open a blank new file, and turn on soft wrapping
  2. Enter text until it wraps to the other line:
    screen shot 2013-08-07 at 3 27 54 pm
  3. Your cursor being at the end of line 1, press ENTER to go to the next line. This correctly creates a newline character and moves the cursor to the beginning of the next line:
    screen shot 2013-08-07 at 3 29 19 pm
  4. Press BACKSPACE. This deletes the new line that was just created and correctly moves the cursor back to the end of line 1. Screenshot same as in step 2:
    screen shot 2013-08-07 at 3 27 54 pm
  5. Press ENTER again, as if to repeat step 3. This messes everything up:
    screen shot 2013-08-07 at 3 30 13 pm

So, the first "virtual" line was duplicated. Also, this duplicated first line is now non-selectable and non-editable -- I can't even put my cursor there (it's frozen).

DevTools console doesn't show any errors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions