Prevent insertion of popup text into buffer, fix #325

This commit is contained in:
Andy K. Massimino
2023-11-04 21:51:06 -04:00
parent 44640e046a
commit d30b72d20f
3 changed files with 7 additions and 6 deletions

View File

@@ -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: |

View File

@@ -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

View File

@@ -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*