Hi,
Just more info, a few changes to plugin/clang.vim and it seems to work ok
now -
--- a/plugin/clang.vim
+++ b/plugin/clang.vim
@@ -583,11 +583,11 @@ func! s:HasPreviewAbove()
let l:cwin = winnr()
let l:has = 0
" goto above
- wincmd k
+ "wincmd k
if &completeopt =~ 'preview' && &previewwindow
let l:has = 1
endif
- exe l:cwin . 'wincmd w'
+ "exe l:cwin . 'wincmd w'
return l:has
endf
"}}}
@@ -1405,7 +1405,7 @@ func! s:ClangComplete(findstart, base)
" close preview window if empty or has no preview window above, may
above
" other windows...
if empty(b:clang_cache['completions']) || !s:HasPreviewAbove()
- pclose
+ "pclose
endif
" call to show diagnostics
But not sure if this is the only way forward ?
thx,
-m
On Wednesday, February 3, 2021 at 10:50:20 PM UTC-5 [email protected]
wrote:
> Hi,
>
> Very recently I am getting errors -
>
> Error detected while processing function
> ClangComplete[2]..<SNR>31_ClangComplete[62]..<SNR>31_HasPreviewAbove:
> line 4:
> E565: Not allowed to change text or change window
>
> When using clang plugin.
> This all worked ok before and I know its ok in 8.2.2410.
> I have not bisected the commit since then that started this, I will do
> that tomorrow.
> Is this now expected and the plugin needs to change ?
>
> thx as always for everything vim,
> -m
>
>
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/c6535297-9986-41fe-ac7c-29b679ed7307n%40googlegroups.com.