diff options
author | Ville Penttinen <[email protected]> | 2019-02-09 11:41:03 +0000 |
---|---|---|
committer | Ville Penttinen <[email protected]> | 2019-02-09 11:52:01 +0000 |
commit | 7b9aefc29db762789645c4114cae093d8f3dfa4f (patch) | |
tree | dab71f1805c3949077e90db0e232330dd0812bdb /crates/ra_hir/src | |
parent | d0a32627a741826502692f2c3de71512b7ec23cf (diff) |
Fix introduce var duplicating newlines
This fixes #713.
If the block before the statement we want to use introduce var on, had empty
lines these empty lines would also be added between the let-statement and
the current line where the new variable is used.
This fixes that by trimming excess newlines from the start of the indent chunk
and simply adding a single newline (when the chunk had newlines) between the
let-statement and the current statement. If there were no newlines this
matches the previous behaviour.
Diffstat (limited to 'crates/ra_hir/src')
0 files changed, 0 insertions, 0 deletions