diff options
author | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-02-10 08:16:08 +0000 |
---|---|---|
committer | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-02-10 08:16:08 +0000 |
commit | 166c72042564bc94586b071d627164a06400576b (patch) | |
tree | 42e398a2b474c712c2e638060ad704b85a8fa2e3 /crates/ra_vfs | |
parent | a8a4f8012e525c816aedf5b0bc51e3ad4c13a0ab (diff) | |
parent | 7b9aefc29db762789645c4114cae093d8f3dfa4f (diff) |
Merge #770
770: Fix introduce var duplicating newlines r=matklad a=vipentti
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.
Co-authored-by: Ville Penttinen <[email protected]>
Diffstat (limited to 'crates/ra_vfs')
0 files changed, 0 insertions, 0 deletions