runtime(asm): fix undefined variable in indent plugin Commit: https://github.com/vim/vim/commit/98b12ede31754071f36fb7a73324456c1ee7b89c Author: Christian Brabandt <c...@256bit.org> Date: Thu Apr 25 22:42:05 2024 +0200
runtime(asm): fix undefined variable in indent plugin It's an indent script, so we need to set the b:undo_indent variable instead of the b:undo_ftplugin var. fixes: #14602 Signed-off-by: Christian Brabandt <c...@256bit.org> diff --git a/runtime/indent/asm.vim b/runtime/indent/asm.vim index 7f848c7b5..4efa766d4 100644 --- a/runtime/indent/asm.vim +++ b/runtime/indent/asm.vim @@ -1,8 +1,9 @@ " Vim indent file -" Language: asm -" Maintainer: Philip Jones <phil...@gmail.com> -" Upstream: https://github.com/philj56/vim-asm-indent -" Latest Revision: 2017-07-01 +" Language: asm +" Maintainer: Philip Jones <phil...@gmail.com> +" Upstream: https://github.com/philj56/vim-asm-indent +" Last Change: 2017-Jul-01 +" 2024 Apr 25 by Vim Project (undo_indent) if exists("b:did_indent") finish @@ -12,7 +13,7 @@ let b:did_indent = 1 setlocal indentexpr=s:getAsmIndent() setlocal indentkeys=<:>,!^F,o,O -let b:undo_ftplugin .= "indentexpr< indentkeys<" +let b:undo_indent = "indentexpr< indentkeys<" function! s:getAsmIndent() let line = getline(v:lnum) -- -- 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 vim_dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/E1s05xn-00Emxk-G2%40256bit.org.