runtime(hog): set undo_ftplugin correctly, delete trailing whitespace

Commit: 
https://github.com/vim/vim/commit/ffc7f8c9dac67cce6c020e8c4158972e2a88ce24
Author: D. Ben Knoble <[email protected]>
Date:   Wed Dec 3 20:15:06 2025 +0000

    runtime(hog): set undo_ftplugin correctly, delete trailing whitespace
    
    closes: https://github.com/vim/vim/issues/18727
    
    Signed-off-by: D. Ben Knoble <[email protected]>
    Signed-off-by: Christian Brabandt <[email protected]>

diff --git a/runtime/ftplugin/hog.vim b/runtime/ftplugin/hog.vim
index 4ee0a9f93..61714f2db 100644
--- a/runtime/ftplugin/hog.vim
+++ b/runtime/ftplugin/hog.vim
@@ -2,13 +2,14 @@
 " Language:     hog (snort.conf)
 " Maintainer: . Victor Roemer, <[email protected]>.
 " Last Change:  Mar 1, 2013
+" 2025 Dec 03 by Vim Project: set undo_ftplugin correctly #18727
 
 if exists("b:did_ftplugin")
     finish
 endif
 let b:did_ftplugin = 1
 
-let s:undo_ftplugin = "setl fo< com< cms< def< inc<"
+let b:undo_ftplugin = "setl fo< com< cms< def< inc<"
 
 let s:cpo_save = &cpo
 set cpo&vim
@@ -19,8 +20,8 @@ setlocal commentstring=

-- 
-- 
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 [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/vim_dev/E1vQtUC-00Eqm7-Db%40256bit.org.

Raspunde prin e-mail lui