Skip to content

Commit 1bc3610

Browse files
committed
runtime(rust): partly revert e426245, it causes more issues than it solves
related: #18974 Signed-off-by: Christian Brabandt <[email protected]>
1 parent 6df5360 commit 1bc3610

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

runtime/indent/rust.vim

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
" Author: Chris Morgan <[email protected]>
44
" Last Change: 2023-09-11
55
" 2024 Jul 04 by Vim Project: use shiftwidth() instead of hard-coding shifted values #15138
6-
" 2025 Dec 28 by Vim Project: clean up, handle opening empty line correctly #18974
6+
" 2025 Dec 29 by Vim Project: clean up
77

88
" For bugs, patches and license go to https://github.com/rust-lang/rust.vim
99
" Note: upstream seems umaintained: https://github.com/rust-lang/rust.vim/issues/502
@@ -232,9 +232,6 @@ function GetRustIndent(lnum)
232232
endif
233233

234234
" Fall back on cindent, which does it mostly right
235-
if empty(trim(line))
236-
return cindent(prevlinenum)
237-
endif
238235
return cindent(a:lnum)
239236
endfunction
240237

0 commit comments

Comments
 (0)