marijnh/CodeMirror — pull request #2311 by njx (2014-02-26 23:53:52+00:00)
Title: [sublime keymap] When splitting selection, ignore last line if selection ends at beginning of line

In the current implementation, if you select a set of whole lines and do "split selection by line", you'll get an extra cursor on the line below the last whole line selected, which doesn't seem like expected behavior. This fixes that case. (Note that if the range is just a single cursor at a beginning of a line, we don't eliminate it.)