mrhanlon / less-than-slash

Atom.io package for closing open tags when `</` is typed, like in Sublime Text 3.
MIT License
23 stars 6 forks source link

Tags inserted in wrong buffer position when multi-line editing #1

Closed mrhanlon closed 9 years ago

mrhanlon commented 10 years ago

This only happens when lines selected for multi-line editing are selected bottom-to-top.

Steps to reproduce:

  1. Hit enter key four or five times.
  2. Hold ctrl-shift and press the up arrow in order to select those like for multi-line editing
  3. Type <div></ so that all lines are autoclosed

Result:

<div></div>
<div>div></
    <didiv>v></
      <div>div></
        <div></div>

If you select lines for multi-line editing from top-to-bottom, instead of bottom-to-top, it works as expected.