mirror of
https://github.com/chenasraf/vim-matchup.git
synced 2026-05-18 01:38:57 +00:00
Prevent insertion of popup text into buffer, fix #325
This commit is contained in:
4
.github/workflows/lint.yml
vendored
4
.github/workflows/lint.yml
vendored
@@ -23,10 +23,10 @@ jobs:
|
||||
name: Vint
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Install python
|
||||
uses: actions/setup-python@v2
|
||||
uses: actions/setup-python@v4
|
||||
|
||||
- name: Install vint
|
||||
run: |
|
||||
|
||||
@@ -688,7 +688,9 @@ function! s:set_popup_text(lnum, adjust, offscreen) abort
|
||||
elseif exists('t:match_popup')
|
||||
call setbufline(winbufnr(t:match_popup), 1, l:text)
|
||||
elseif exists('s:float_id')
|
||||
call setbufline(winbufnr(s:float_id), 1, l:text)
|
||||
if s:float_id > 0 && winbufnr(s:float_id) != bufnr('%')
|
||||
call setbufline(winbufnr(s:float_id), 1, l:text)
|
||||
endif
|
||||
endif
|
||||
return strdisplaywidth(l:text)
|
||||
endfunction
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
*matchup.txt* modern matching words
|
||||
*matchup* *match-up*
|
||||
*matchup* *match-up* *vim-matchup*
|
||||
|
||||
Author: Andy Massimino <a@normed.space>
|
||||
Web: https://github.com/andymass/vim-matchup
|
||||
@@ -270,7 +270,6 @@ See |matchup-feat-exclusive| and |matchup-feat-linewise| for some examples and
|
||||
important special cases.
|
||||
|
||||
*matchup-treesitter*
|
||||
|
||||
Tree-sitter integration~
|
||||
Note: Currently this feature is possible in neovim only. Only the latest
|
||||
version of neovim and nvim-treesitter is supported.
|
||||
@@ -830,7 +829,7 @@ the function |timer_pause|, version 7.4.2180 and after.
|
||||
else
|
||||
cout << ""; ◀ if
|
||||
|
||||
Default ◀
|
||||
Default: ◀
|
||||
|
||||
*MatchupVirtualText*
|
||||
|
||||
|
||||
Reference in New Issue
Block a user