mirror of
https://github.com/neovim/neovim.git
synced 2025-12-06 06:32:33 +00:00
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
98b12ede31
Co-authored-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
@@ -2,7 +2,8 @@
|
|||||||
" Language: asm
|
" Language: asm
|
||||||
" Maintainer: Philip Jones <philj56@gmail.com>
|
" Maintainer: Philip Jones <philj56@gmail.com>
|
||||||
" Upstream: https://github.com/philj56/vim-asm-indent
|
" Upstream: https://github.com/philj56/vim-asm-indent
|
||||||
" Latest Revision: 2017-07-01
|
" Last Change: 2017-Jul-01
|
||||||
|
" 2024 Apr 25 by Vim Project (undo_indent)
|
||||||
|
|
||||||
if exists("b:did_indent")
|
if exists("b:did_indent")
|
||||||
finish
|
finish
|
||||||
@@ -12,7 +13,7 @@ let b:did_indent = 1
|
|||||||
setlocal indentexpr=s:getAsmIndent()
|
setlocal indentexpr=s:getAsmIndent()
|
||||||
setlocal indentkeys=<:>,!^F,o,O
|
setlocal indentkeys=<:>,!^F,o,O
|
||||||
|
|
||||||
let b:undo_ftplugin .= "indentexpr< indentkeys<"
|
let b:undo_indent = "indentexpr< indentkeys<"
|
||||||
|
|
||||||
function! s:getAsmIndent()
|
function! s:getAsmIndent()
|
||||||
let line = getline(v:lnum)
|
let line = getline(v:lnum)
|
||||||
|
|||||||
Reference in New Issue
Block a user