Mercurial > vim
view runtime/compiler/cargo.vim @ 28371:c3a7be75ef16 v8.2.4711
patch 8.2.4711: when 'insermode' is set :edit from <Cmd> mapping misbehaves
Commit: https://github.com/vim/vim/commit/3a56b6d405fc0f1ca928b77382f97d0c552bea64
Author: zeertzjq <zeertzjq@outlook.com>
Date: Fri Apr 8 11:56:14 2022 +0100
patch 8.2.4711: when 'insermode' is set :edit from <Cmd> mapping misbehaves
Problem: When 'insermode' is set :edit from <Cmd> mapping misbehaves.
Solution: Don't set "need_start_insertmode" when already in Insert mode.
(closes #10116)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 08 Apr 2022 13:00:04 +0200 |
parents | 146a1e213b60 |
children | 555fede66c30 |
line wrap: on
line source
" Vim compiler file " Compiler: Cargo Compiler " Maintainer: Damien Radtke <damienradtke@gmail.com> " Latest Revision: 2014 Sep 24 " For bugs, patches and license go to https://github.com/rust-lang/rust.vim if exists('current_compiler') finish endif runtime compiler/rustc.vim let current_compiler = "cargo" let s:save_cpo = &cpo set cpo&vim if exists(':CompilerSet') != 2 command -nargs=* CompilerSet setlocal <args> endif if exists('g:cargo_makeprg_params') execute 'CompilerSet makeprg=cargo\ '.escape(g:cargo_makeprg_params, ' \|"').'\ $*' else CompilerSet makeprg=cargo\ $* endif " Ignore general cargo progress messages CompilerSet errorformat+= \%-G%\\s%#Downloading%.%#, \%-G%\\s%#Compiling%.%#, \%-G%\\s%#Finished%.%#, \%-G%\\s%#error:\ Could\ not\ compile\ %.%#, \%-G%\\s%#To\ learn\ more\\,%.%# let &cpo = s:save_cpo unlet s:save_cpo