Mercurial > vim
view runtime/ftplugin/help.vim @ 27352:2bec1976362c v8.2.4204
patch 8.2.4204: screenpos() has non-zero row for invisible text
Commit: https://github.com/vim/vim/commit/7924a17791217d50be5a91989a9641bf68e7a735
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Jan 24 16:15:15 2022 +0000
patch 8.2.4204: screenpos() has non-zero row for invisible text
Problem: screenpos() has non-zero row for invisible text.
Solution: Only add the window row when the text is visible. (closes https://github.com/vim/vim/issues/9618)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 24 Jan 2022 17:30:05 +0100 |
parents | 9d3d7b0f4861 |
children |
line wrap: on
line source
" Vim filetype plugin file " Language: Vim help file " Previous Maintainer: Nikolai Weibull <now@bitwi.se> " Latest Revision: 2018-12-29 if exists("b:did_ftplugin") finish endif let b:did_ftplugin = 1 let s:cpo_save = &cpo set cpo&vim let b:undo_ftplugin = "setl fo< tw< cole< cocu< keywordprg<" setlocal formatoptions+=tcroql textwidth=78 keywordprg=:help if has("conceal") setlocal cole=2 cocu=nc endif let &cpo = s:cpo_save unlet s:cpo_save