[vim/vim] ins-completion menu is not align with start positon (Issue #20868)
Mao-Yining (Vim Github Repository) <[email protected]> Wed, 29 Jul 2026 06:09:37 -0700
| Newsgroups | gmane.editors.vim.devel |
|---|---|
| Message-ID | <vim/vim/issues/[email protected]> |
mao-yining created an issue (vim/vim#20868)
For
```vim
vim9script
def g:Path(findstart: bool, base: string): any
if findstart
var pos = col('.') - 2
var orig = pos
var line = getline('.')
while pos > 0 && line[pos] =~ '\f'
--pos
endwhile
if pos == 0 && line[pos] =~ '\f'
return 0
elseif pos == orig
return -2
else
return pos + 1
endif
endif
try
return base->getcompletion('file')
->mapnew((_, v) => ({word: v->trim('/\', 2), abbr: v, kind: 'p'}))
catch
return v:none
endtry
enddef
set complete=FPath
set autocomplete
```
menu is placed in different place
Current behaviour:
<img width="792" height="218" alt="Image" src="https://github.com/user-attachments/assets/4f933be5-4d0a-4b13-8cb0-816245168668" />
Expect like: `<C-X><C-F>`
<img width="506" height="210" alt="Image" src="https://github.com/user-attachments/assets/1045c738-1d0f-4387-bf07-fdb243241bb0" />
Find while: #20392.
--
Reply to this email directly or view it on GitHub:
https://github.com/vim/vim/issues/20868
You are receiving this because you are subscribed to this thread.
Message ID: <vim/vim/issues/[email protected]>
--
--
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 visit https://groups.google.com/d/msgid/vim_dev/vim/vim/issues/20868%40github.com.