Mercurial > vim
annotate runtime/ftplugin/muttrc.vim @ 34571:fdd232ab72ea v9.1.0184
patch 9.1.0184: Cursor pos wrong when clicking with conceal and wrap
Commit: https://github.com/vim/vim/commit/d0c1b7723f7e73763597af2f97a53d94ab7ed020
Author: zeertzjq <zeertzjq@outlook.com>
Date: Sat Mar 16 15:03:33 2024 +0100
patch 9.1.0184: Cursor pos wrong when clicking with conceal and wrap
Problem: Cursor position wrong when clicking with conceal and wrap.
Solution: Use the virtual column of the last char for ScreenCols[] in
boguscols. Remove use of MAXCOL in ScreenCols[]. Rename
third argument of wlv_screen_line() to "clear_end" as that's
clearer what it does (zeertzjq).
related: 14192
closes: #14200
Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 16 Mar 2024 15:15:04 +0100 |
parents | c252fbfde41d |
children | 89b487b08b2a |
rev | line source |
---|---|
375 | 1 " Vim filetype plugin file |
11062 | 2 " Language: mutt RC File |
3 " Previous Maintainer: Nikolai Weibull <now@bitwi.se> | |
33508
c252fbfde41d
runtime: make command name for &iskeywordprg more unique (#13297)
Christian Brabandt <cb@256bit.org>
parents:
33074
diff
changeset
|
4 " Latest Revision: 2023-10-07 |
375 | 5 |
6 if exists("b:did_ftplugin") | |
7 finish | |
8 endif | |
9 let b:did_ftplugin = 1 | |
10 | |
1698 | 11 let s:cpo_save = &cpo |
12 set cpo&vim | |
13 | |
389 | 14 let b:undo_ftplugin = "setl com< cms< inc< fo<" |
375 | 15 |
16 setlocal comments=:# commentstring=#\ %s | |
389 | 17 setlocal formatoptions-=t formatoptions+=croql |
375 | 18 |
19 let &l:include = '^\s*source\>' | |
1698 | 20 |
32976
d23645a0aca8
runtime: configure keywordpg for some file types (#5566)
Christian Brabandt <cb@256bit.org>
parents:
11062
diff
changeset
|
21 if has('unix') && executable('less') |
d23645a0aca8
runtime: configure keywordpg for some file types (#5566)
Christian Brabandt <cb@256bit.org>
parents:
11062
diff
changeset
|
22 if !has('gui_running') |
33508
c252fbfde41d
runtime: make command name for &iskeywordprg more unique (#13297)
Christian Brabandt <cb@256bit.org>
parents:
33074
diff
changeset
|
23 command -buffer -nargs=1 MuttrcKeywordPrg |
32976
d23645a0aca8
runtime: configure keywordpg for some file types (#5566)
Christian Brabandt <cb@256bit.org>
parents:
11062
diff
changeset
|
24 \ silent exe '!' . 'LESS= MANPAGER="less --pattern=''^\s+' . <q-args> . '\b'' --hilite-search" man ' . 'muttrc' | |
d23645a0aca8
runtime: configure keywordpg for some file types (#5566)
Christian Brabandt <cb@256bit.org>
parents:
11062
diff
changeset
|
25 \ redraw! |
d23645a0aca8
runtime: configure keywordpg for some file types (#5566)
Christian Brabandt <cb@256bit.org>
parents:
11062
diff
changeset
|
26 elseif has('terminal') |
33508
c252fbfde41d
runtime: make command name for &iskeywordprg more unique (#13297)
Christian Brabandt <cb@256bit.org>
parents:
33074
diff
changeset
|
27 command -buffer -nargs=1 MuttrcKeywordPrg |
32976
d23645a0aca8
runtime: configure keywordpg for some file types (#5566)
Christian Brabandt <cb@256bit.org>
parents:
11062
diff
changeset
|
28 \ silent exe 'term ' . 'env LESS= MANPAGER="less --pattern=''' . escape('^\s+' . <q-args> . '\b', '\') . ''' --hilite-search" man ' . 'muttrc' |
d23645a0aca8
runtime: configure keywordpg for some file types (#5566)
Christian Brabandt <cb@256bit.org>
parents:
11062
diff
changeset
|
29 endif |
33508
c252fbfde41d
runtime: make command name for &iskeywordprg more unique (#13297)
Christian Brabandt <cb@256bit.org>
parents:
33074
diff
changeset
|
30 if exists(':MuttrcKeywordPrg') == 2 |
32976
d23645a0aca8
runtime: configure keywordpg for some file types (#5566)
Christian Brabandt <cb@256bit.org>
parents:
11062
diff
changeset
|
31 setlocal iskeyword+=- |
33508
c252fbfde41d
runtime: make command name for &iskeywordprg more unique (#13297)
Christian Brabandt <cb@256bit.org>
parents:
33074
diff
changeset
|
32 setlocal keywordprg=:MuttrcKeywordPrg |
c252fbfde41d
runtime: make command name for &iskeywordprg more unique (#13297)
Christian Brabandt <cb@256bit.org>
parents:
33074
diff
changeset
|
33 let b:undo_ftplugin .= '| setlocal keywordprg< iskeyword< | sil! delc -buffer MuttrcKeywordPrg' |
32976
d23645a0aca8
runtime: configure keywordpg for some file types (#5566)
Christian Brabandt <cb@256bit.org>
parents:
11062
diff
changeset
|
34 endif |
d23645a0aca8
runtime: configure keywordpg for some file types (#5566)
Christian Brabandt <cb@256bit.org>
parents:
11062
diff
changeset
|
35 endif |
d23645a0aca8
runtime: configure keywordpg for some file types (#5566)
Christian Brabandt <cb@256bit.org>
parents:
11062
diff
changeset
|
36 |
1698 | 37 let &cpo = s:cpo_save |
38 unlet s:cpo_save |