Mercurial > vim
view runtime/indent/context.vim @ 17403:9b6c0ef29c20 v8.1.1700
patch 8.1.1700: listener callback called for the wrong buffer
commit https://github.com/vim/vim/commit/250e3112c6dc4c4ceded308d5b94392ec02bc03f
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Jul 15 23:02:14 2019 +0200
patch 8.1.1700: listener callback called for the wrong buffer
Problem: Listener callback called for the wrong buffer.
Solution: Invoke listeners before calling ml_append_int().
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 15 Jul 2019 23:15:07 +0200 |
parents | 07d2b5a3b7cc |
children | f00c56ee8118 |
line wrap: on
line source
" ConTeXt indent file " Language: ConTeXt typesetting engine " Maintainer: Nicola Vitacolonna <nvitacolonna@gmail.com> " Last Change: 2016 Oct 15 if exists("b:did_indent") finish endif if !get(b:, 'context_metapost', get(g:, 'context_metapost', 1)) finish endif " Load MetaPost indentation script runtime! indent/mp.vim let s:keepcpo= &cpo set cpo&vim setlocal indentexpr=GetConTeXtIndent() let b:undo_indent = "setl indentexpr<" function! GetConTeXtIndent() " Use MetaPost rules inside MetaPost graphic environments if len(synstack(v:lnum, 1)) > 0 && \ synIDattr(synstack(v:lnum, 1)[0], "name") ==# 'contextMPGraphic' return GetMetaPostIndent() endif return -1 endfunc let &cpo = s:keepcpo unlet s:keepcpo " vim:sw=2