Commit: runtime(asm): missing setlocal in indent plugin (#14658)

3 views
Skip to first unread message

Christian Brabandt

unread,
Apr 28, 2024, 3:45:09 PMApr 28
to vim...@googlegroups.com
runtime(asm): missing setlocal in indent plugin (#14658)

Commit: https://github.com/vim/vim/commit/2e9b9e9a9ebf3fd40437260ecd6b1e23b02c636b
Author: Marc Sven Schulte <167623652...@users.noreply.github.com>
Date: Sun Apr 28 21:43:03 2024 +0200

runtime(asm): missing setlocal in indent plugin (https://github.com/vim/vim/issues/14658)


Signed-off-by: Marc Sven Schulte <167623652...@users.noreply.github.com>
Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/runtime/indent/asm.vim b/runtime/indent/asm.vim
index 4efa766d4..054612b9d 100644
--- a/runtime/indent/asm.vim
+++ b/runtime/indent/asm.vim
@@ -13,7 +13,7 @@ let b:did_indent = 1
setlocal indentexpr=s:getAsmIndent()
setlocal indentkeys=<:>,!^F,o,O

-let b:undo_indent = "indentexpr< indentkeys<"
+let b:undo_indent = "setlocal indentexpr< indentkeys<"

function! s:getAsmIndent()
let line = getline(v:lnum)
Reply all
Reply to author
Forward
0 new messages