runtime(haskellcomplete): fix Undefined variable b:completingLangExtension.
Commit: https://github.com/vim/vim/commit/61044eb5364b7a044820933e2cb32d7b0e7c9cdd Author: Arkissa <[email protected]> Date: Wed Feb 4 15:45:05 2026 +0000 runtime(haskellcomplete): fix Undefined variable b:completingLangExtension. closes: https://github.com/vim/vim/issues/19259 Signed-off-by: Arkissa <[email protected]> Signed-off-by: Christian Brabandt <[email protected]> diff --git a/runtime/autoload/haskellcomplete.vim b/runtime/autoload/haskellcomplete.vim index 759ff8741..2b2820907 100644 --- a/runtime/autoload/haskellcomplete.vim +++ b/runtime/autoload/haskellcomplete.vim @@ -3,10 +3,9 @@ " Maintainer: Daniel Campoverde <[email protected]> " URL: https://github.com/alx741/haskellcomplete.vim " Last Change: 2019 May 14 - +" 2026 Feb 04 by Vim project: fix undefined buffer variable: #19259 " Usage: setlocal omnifunc=haskellcomplete#Complete - " Language extensions from: " https://hackage.haskell.org/package/Cabal-2.2.0.1/docs/Language-Haskell-Extension.html " @@ -15,12 +14,6 @@ " https://downloads.haskell.org/~ghc/8.4.3/docs/html/users_guide/flags.html - -" Available completions -let b:completingLangExtension = 0 -let b:completingOptionsGHC = 0 -let b:completingModule = 0 - function! haskellcomplete#Complete(findstart, base) if a:findstart let l:line = getline('.') @@ -52,7 +45,7 @@ function! haskellcomplete#Complete(findstart, base) return start endif - if b:completingLangExtension + if get(b:, 'completingLangExtension', 0) if a:base ==? "" " Return all possible Lang extensions return s:langExtensions @@ -68,7 +61,7 @@ function! haskellcomplete#Complete(findstart, base) endif - elseif b:completingOptionsGHC + elseif get(b:, 'completingOptionsGHC', 0) if a:base ==? "" " Return all possible GHC options return s:optionsGHC @@ -84,7 +77,7 @@ function! haskellcomplete#Complete(findstart, base) endif - elseif b:completingModule + elseif get(b:, 'completingModule', 0) if a:base ==? "" " Return all possible modules return s:commonModules -- -- 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/E1vnf3x-00Co8D-NY%40256bit.org.
