ajaxorg/ace — pull request #1902 by pjhuck (2014-04-09 16:57:33+00:00)
Title: fix for anchor & insertRight behavior

When you have an anchor set to insertRight and at column 0 when you call insertNewLine() or insertInLine() the anchor stays at its current position.

However, if you attempt to insertLines() at the same row as the anchor, the anchor is moved down. This doesn't seem to match the intended behavior of $insertRight, since all new text at the anchor position should go to the right of the anchor.

This pull request changes the behavior of the anchor so that if $insertRight is true and it is at column 0, then when you insertLines() at the anchor's row, the anchor does not move.