JuliaLang/julia — pull request #7981 by Wilfred (2014-08-12 20:54:37+00:00)
Title: Preserve point position when indenting.

Fixes #7966.

The new logic is as follows:

If point is in the leading whitespace, jump to the first non-whitespace
character.

```
Before:
| foo
After :
|foo
```

If point is on non-whitespace character, preserve its offset after
indentation.

```
Before:
fo|o
After :
fo|o
```

Finally, if point is on an end keyword (see `julia-block-end-keywords`),
then skip to the end. This allows repeated `` to navigate out of
blocks.

```
Before:
| end
end
once:
end|
end
again:
end
end|
```