Skip to content

Commit d30b72d

Browse files
committed
Prevent insertion of popup text into buffer, fix #325
1 parent 44640e0 commit d30b72d

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

.github/workflows/lint.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ jobs:
2323
name: Vint
2424
runs-on: ubuntu-latest
2525
steps:
26-
- uses: actions/checkout@v1
26+
- uses: actions/checkout@v3
2727

2828
- name: Install python
29-
uses: actions/setup-python@v2
29+
uses: actions/setup-python@v4
3030

3131
- name: Install vint
3232
run: |

autoload/matchup/matchparen.vim

+3-1
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,9 @@ function! s:set_popup_text(lnum, adjust, offscreen) abort
688688
elseif exists('t:match_popup')
689689
call setbufline(winbufnr(t:match_popup), 1, l:text)
690690
elseif exists('s:float_id')
691-
call setbufline(winbufnr(s:float_id), 1, l:text)
691+
if s:float_id > 0 && winbufnr(s:float_id) != bufnr('%')
692+
call setbufline(winbufnr(s:float_id), 1, l:text)
693+
endif
692694
endif
693695
return strdisplaywidth(l:text)
694696
endfunction

doc/matchup.txt

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
*matchup.txt* modern matching words
2-
*matchup* *match-up*
2+
*matchup* *match-up* *vim-matchup*
33

44
Author: Andy Massimino <[email protected]>
55
Web: https://github.com/andymass/vim-matchup
@@ -270,7 +270,6 @@ See |matchup-feat-exclusive| and |matchup-feat-linewise| for some examples and
270270
important special cases.
271271

272272
*matchup-treesitter*
273-
274273
Tree-sitter integration~
275274
Note: Currently this feature is possible in neovim only. Only the latest
276275
version of neovim and nvim-treesitter is supported.
@@ -830,7 +829,7 @@ the function |timer_pause|, version 7.4.2180 and after.
830829
else
831830
cout << ""; ◀ if
832831

833-
Default ◀
832+
Default:
834833

835834
*MatchupVirtualText*
836835

0 commit comments

Comments
 (0)