" Author: Chris Morgan <me@chrismorgan.info>
" Last Change: 2023-09-11
" 2024 Jul 04 by Vim Project: use shiftwidth() instead of hard-coding shifted values #15138
-" 2025 Dec 28 by Vim Project: clean up, handle opening empty line correctly #18974
+" 2025 Dec 29 by Vim Project: clean up
" For bugs, patches and license go to https://github.com/rust-lang/rust.vim
" Note: upstream seems umaintained: https://github.com/rust-lang/rust.vim/issues/502
endif
" Fall back on cindent, which does it mostly right
- if empty(trim(line))
- return cindent(prevlinenum)
- endif
return cindent(a:lnum)
endfunction