Nathan Sobo d042d15a50 Autoscroll to cursor on undo
Fixes #2815

This commit changes our autoscroll strategy for cursors significantly.

Originally, we were autoscrolling whenever the cursor's marker changed
positions. This worked well, except we didn't end up autoscrolling when
the user *attempted* to move the cursor to an invalid position, such as
moving down at the end of the buffer, due to the fact that the marker
wouldn't change.

Then, we moved to always requesting an autoscroll whenever a position
change was requested via Cursor::changePosition. This missed out on
moving the cursor when inserting text, so we then also added an explicit
autoscroll call when inserting text.

This had the problem of not autoscrolling due to undo. So finally, this
solution combines explicit autoscroll in ::changePosition to capture
intent, as well as implicit autoscrolling whenever the cursor's marker
position changes due to a textual change in the buffer. This captures
undo/redo correctly.
2014-07-07 15:21:48 -06:00
2014-07-02 13:17:46 -07:00
2014-07-06 10:08:24 -07:00
2014-04-30 14:41:23 -07:00
2014-06-17 14:42:57 -07:00
2014-06-19 16:16:16 -07:00
2014-07-02 13:55:58 -07:00
2014-07-07 15:21:48 -06:00
2014-07-07 15:21:48 -06:00
2014-04-24 15:43:35 -07:00
2014-06-11 13:24:54 -07:00
2014-05-29 09:26:18 -07:00
2014-06-26 14:25:40 -07:00
2014-04-23 15:36:57 -07:00
2014-05-09 09:28:50 +02:00

Atom

Atom is a hackable text editor for the 21st century, built on atom-shell, and based on everything we love about our favorite editors. We designed it to be deeply customizable, but still approachable using the default configuration.

Visit atom.io to learn more.

Installing

Download the latest Atom release.

Atom will automatically update when a new release is available.

Building

Developing

Check out the guides and the API reference.

Description
No description provided
Readme 447 MiB
Languages
JavaScript 88.3%
Less 8.7%
CoffeeScript 2.8%
Shell 0.1%