Skip to content

Commit

Permalink
Prevent insertion of popup text into buffer, fix #325
Browse files Browse the repository at this point in the history
  • Loading branch information
andymass committed Nov 5, 2023
1 parent 44640e0 commit d30b72d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
4 changes: 3 additions & 1 deletion autoload/matchup/matchparen.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 2 additions & 3 deletions doc/matchup.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -830,7 +829,7 @@ the function |timer_pause|, version 7.4.2180 and after.
else
cout << ""; ◀ if

Default ◀
Default:

*MatchupVirtualText*

Expand Down

0 comments on commit d30b72d

Please sign in to comment.