]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(asm): fix undefined variable in indent plugin
authorChristian Brabandt <cb@256bit.org>
Thu, 25 Apr 2024 20:42:05 +0000 (22:42 +0200)
committerChristian Brabandt <cb@256bit.org>
Thu, 25 Apr 2024 20:42:05 +0000 (22:42 +0200)
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 <cb@256bit.org>
runtime/indent/asm.vim

index 7f848c7b5f15c6ca65eed4722fa1987e1822b9cd..4efa766d4d609da5129bd983731b891927a75fde 100644 (file)
@@ -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)