Mercurial > vim
view runtime/compiler/ocaml.vim @ 12080:93024e778745 v8.0.0920
patch 8.0.0920: cursor wrong after switching altscreen in terminal
commit https://github.com/vim/vim/commit/893029ab20a06da9c0cf29661c9f6e2ec5583dce
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Aug 12 21:15:34 2017 +0200
patch 8.0.0920: cursor wrong after switching altscreen in terminal
Problem: The cursor shape is wrong after switch back from an alternate
screen in a terminal window. (arius Gedminas)
Solution: Change bitfield to unsigned. Set flag that cursor shape was set.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 12 Aug 2017 21:30:04 +0200 |
parents | c458ff35497e |
children | 432714f5c0f7 |
line wrap: on
line source
" Vim Compiler File " Compiler: ocaml " Maintainer: See ftplugin/ocaml.vim (?) " Last Change: June 2013 by Marc Weber " " Marc Weber's comments: " Setting makeprg doesn't make sense, because there is ocamlc, ocamlopt, " ocamake and whatnot. So which one to use? " " This error format was moved from ftplugin/ocaml.vim to this file, " because ftplugin is the wrong file to set an error format " and the error format itself is annoying because it joins many lines in this " error case: " " Error: The implementation foo.ml does not match the interface foo.cmi: " Modules do not match case. " " So having it here makes people opt-in if exists("current_compiler") finish endif let current_compiler = "ocaml" let s:cpo_save = &cpo set cpo&vim CompilerSet errorformat = \%EFile\ \"%f\"\\,\ line\ %l\\,\ characters\ %c-%*\\d:, \%EFile\ \"%f\"\\,\ line\ %l\\,\ character\ %c:%m, \%+EReference\ to\ unbound\ regexp\ name\ %m, \%Eocamlyacc:\ e\ -\ line\ %l\ of\ \"%f\"\\,\ %m, \%Wocamlyacc:\ w\ -\ %m, \%-Zmake%.%#, \%C%m, \%D%*\\a[%*\\d]:\ Entering\ directory\ `%f', \%X%*\\a[%*\\d]:\ Leaving\ directory\ `%f', \%D%*\\a:\ Entering\ directory\ `%f', \%X%*\\a:\ Leaving\ directory\ `%f', \%DMaking\ %*\\a\ in\ %f let &cpo = s:cpo_save unlet s:cpo_save