view runtime/autoload/contextcomplete.vim @ 30602:001c228efdab v9.0.0636

patch 9.0.0636: underline color may not work in some terminals Commit: https://github.com/vim/vim/commit/b393275ae91eb9a8df7a9a611bd75590db9b22db Author: Bram Moolenaar <Bram@vim.org> Date: Sat Oct 1 21:22:17 2022 +0100 patch 9.0.0636: underline color may not work in some terminals Problem: Underline color does not work in terminals that don't send a termresponse. Solution: Do output t_8u if it was set explicitly. (closes #11253)
author Bram Moolenaar <Bram@vim.org>
date Sat, 01 Oct 2022 22:30:03 +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