diff options
author | Christian Clason <c.clason@uni-graz.at> | 2024-04-25 23:18:58 +0200 |
---|---|---|
committer | Christian Clason <c.clason@uni-graz.at> | 2024-04-25 23:46:46 +0200 |
commit | d855c7a2fb3315f4fb05becff798e42833792fe5 (patch) | |
tree | 25c31fe46e78baff43c5a0f7489e9cb9abd743e2 | |
parent | af8500af64571f787579b60bf0064cd05655fd51 (diff) | |
download | rneovim-d855c7a2fb3315f4fb05becff798e42833792fe5.tar.gz rneovim-d855c7a2fb3315f4fb05becff798e42833792fe5.tar.bz2 rneovim-d855c7a2fb3315f4fb05becff798e42833792fe5.zip |
vim-patch:98b12ede3175
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: vim/vim#14602
https://github.com/vim/vim/commit/98b12ede31754071f36fb7a73324456c1ee7b89c
Co-authored-by: Christian Brabandt <cb@256bit.org>
-rw-r--r-- | runtime/indent/asm.vim | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/runtime/indent/asm.vim b/runtime/indent/asm.vim index 7f848c7b5f..4efa766d4d 100644 --- a/runtime/indent/asm.vim +++ b/runtime/indent/asm.vim @@ -1,8 +1,9 @@ " Vim indent file -" Language: asm -" Maintainer: Philip Jones <philj56@gmail.com> -" Upstream: https://github.com/philj56/vim-asm-indent -" Latest Revision: 2017-07-01 +" Language: asm +" Maintainer: Philip Jones <philj56@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) |