Mercurial > vim
view runtime/autoload/contextcomplete.vim @ 29976:b6b71499d9af v9.0.0326
patch 9.0.0326: some changes for cmdheight=0 are not needed
Commit: https://github.com/vim/vim/commit/0e412be00f8290e0575c7f72ec080725631eff38
Author: Shougo Matsushita <Shougo.Matsu@gmail.com>
Date: Tue Aug 30 11:54:21 2022 +0100
patch 9.0.0326: some changes for cmdheight=0 are not needed
Problem: Some changes for cmdheight=0 are not needed.
Solution: Revert resize behavior if height is greater than the available
space. (Shougo Matsushita, closes #11008)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 30 Aug 2022 13:00:05 +0200 |
parents | 07d2b5a3b7cc |
children |
line wrap: on
line source
" Language: ConTeXt typesetting engine " Maintainer: Nicola Vitacolonna <nvitacolonna@gmail.com> " Latest Revision: 2016 Oct 15 let s:keepcpo= &cpo set cpo&vim " Complete keywords in MetaPost blocks function! contextcomplete#Complete(findstart, base) if a:findstart == 1 if len(synstack(line('.'), 1)) > 0 && \ synIDattr(synstack(line('.'), 1)[0], "name") ==# 'contextMPGraphic' return syntaxcomplete#Complete(a:findstart, a:base) else return -3 endif else return syntaxcomplete#Complete(a:findstart, a:base) endif endfunction let &cpo = s:keepcpo unlet s:keepcpo " vim: sw=2 fdm=marker