about summary refs log tree commit diff
path: root/src/test/codegen/stack-alloc-string-slice.rs
diff options
context:
space:
mode:
authorMicah Chalmer <micah@micahchalmer.net>2014-03-11 20:23:32 -0400
committerAlex Crichton <alex@alexcrichton.com>2014-03-12 15:01:25 -0700
commitd28d5b7fb4ee11d29260b477b70ac32c25f61cff (patch)
tree47fb8b08d1d9870306b1e7f257c796c44b78bb5c /src/test/codegen/stack-alloc-string-slice.rs
parentaac6e317639140a149d97116d43e66b5bd76bce3 (diff)
downloadrust-d28d5b7fb4ee11d29260b477b70ac32c25f61cff.tar.gz
rust-d28d5b7fb4ee11d29260b477b70ac32c25f61cff.zip
Emacs: always jump the cursor if needed on indent
The rust-mode-indent-line function had a check, which ran after all the
calculations for how to indent had already happened, that skipped
actually performing the indent if the line was already at the right
indentation.

Because of that, the cursor did not jump to the indentation if the line
wasn't changing.  This was particularly annoying if there was nothing
but spaces on the line and you were at the beginning of it--it looked
like the indent just wasn't working.

This removes the check and adds test cases to cover this.
Diffstat (limited to 'src/test/codegen/stack-alloc-string-slice.rs')
0 files changed, 0 insertions, 0 deletions