Mercurial > vim
view runtime/ftplugin/expect.vim @ 31890:2d96d7f9da7e v9.0.1277
patch 9.0.1277: cursor may move with autocmd in Visual mode
Commit: https://github.com/vim/vim/commit/49f0524fb575bb1cf4881e472afab7d37c579440
Author: zeertzjq <zeertzjq@outlook.com>
Date: Sat Feb 4 10:58:34 2023 +0000
patch 9.0.1277: cursor may move with autocmd in Visual mode
Problem: Cursor may move with autocmd in Visual mode.
Solution: Restore "VIsual_active" before calling check_cursor().
(closes #11939)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 04 Feb 2023 12:00:05 +0100 |
parents | 67f31c24291b |
children | 8ae680be2a51 |
line wrap: on
line source
" Vim filetype plugin file " Language: Expect " Maintainer: Doug Kearns <dougkearns@gmail.com> " Last Change: 2022 Jul 16 if exists("b:did_ftplugin") finish endif " Syntax is similar to Tcl runtime! ftplugin/tcl.vim let s:cpo_save = &cpo set cpo&vim if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter") let b:browsefilter = "Expect Command Files (*.exp)\t*.exp\n" .. \ "All Files (*.*)\t*.*\n" endif let &cpo = s:cpo_save unlet s:cpo_save " vim: nowrap sw=2 sts=2 ts=8