runtime(rust): partly revert e426245b, it causes more issues than it solves
Commit: https://github.com/vim/vim/commit/1bc3610b0a59ea89d9f58f2abab9f9b1062c1698 Author: Christian Brabandt <[email protected]> Date: Mon Dec 29 09:41:17 2025 +0100 runtime(rust): partly revert e426245b, it causes more issues than it solves related: https://github.com/vim/vim/issues/18974 Signed-off-by: Christian Brabandt <[email protected]> diff --git a/runtime/indent/rust.vim b/runtime/indent/rust.vim index 2a660bcc7..662c9e766 100644 --- a/runtime/indent/rust.vim +++ b/runtime/indent/rust.vim @@ -3,7 +3,7 @@ " Author: Chris Morgan <[email protected]> " 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 @@ -232,9 +232,6 @@ function GetRustIndent(lnum) endif " Fall back on cindent, which does it mostly right - if empty(trim(line)) - return cindent(prevlinenum) - endif return cindent(a:lnum) endfunction -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/vim_dev/E1va8sF-003iNl-Gh%40256bit.org.
