Emacs: always jump the cursor if needed on indent#12835
Closed
MicahChalmer wants to merge 1 commit intorust-lang:masterfrom
Closed
Emacs: always jump the cursor if needed on indent#12835MicahChalmer wants to merge 1 commit intorust-lang:masterfrom
MicahChalmer wants to merge 1 commit intorust-lang:masterfrom
Conversation
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.
fasterthanlime
pushed a commit
to fasterthanlime/rust
that referenced
this pull request
Jul 22, 2022
…hanlime Introduce proc-macro-srv/sysroot-abi Still a WIP. This change is tracked by: * rust-lang/rust-analyzer#12818
bors
added a commit
to rust-lang-ci/rust
that referenced
this pull request
May 30, 2024
…ls, r=y21 feat: `Quick Fix` for `bare URLs` closes rust-lang#12835. *Please write a short comment explaining your change (or "none" for internal only changes)* changelog: [`clippy::doc_markdown`]: `Quick Fix` for `bare URLs`
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.