view runtime/plugin/spellfile.vim @ 31412:742b7bf2fefc v9.0.1039

patch 9.0.1039: using a <Cmd> mapping CmdlineChanged may be triggered twice Commit: https://github.com/vim/vim/commit/bb393d8259af8aec095e96d81624a16ed9f25005 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Dec 9 12:21:50 2022 +0000 patch 9.0.1039: using a <Cmd> mapping CmdlineChanged may be triggered twice Problem: Using a <Cmd> mapping CmdlineChanged may be triggered twice. Solution: Count the number of times CmdlineChanged is triggered and avoid doing it twice. (closes #116820
author Bram Moolenaar <Bram@vim.org>
date Fri, 09 Dec 2022 13:30:05 +0100
parents 8157079cea85
children 4027cefc2aab
line wrap: on
line source

" Vim plugin for downloading spell files
" Maintainer:  Bram Moolenaar <Bram@vim.org>
" Last Change: 2006 Feb 01

" Exit quickly when:
" - this plugin was already loaded
" - when 'compatible' is set
" - some autocommands are already taking care of spell files
if exists("loaded_spellfile_plugin") || &cp || exists("#SpellFileMissing")
  finish
endif
let loaded_spellfile_plugin = 1

" The function is in the autoload directory.
autocmd SpellFileMissing * call spellfile#LoadFile(expand('<amatch>'))