Closed Alexey104 closed 10 months ago
What are your complete
and completeopt
settings? I'm not seeing any additional characters. -exec i bre
completes to -exec i breakpoints
for me.
What are your
complete
andcompleteopt
settings?
complete=.,w,b,u,t
completeopt=menu,preview
-exec i bre
completes to-exec i breakpoints
for me.
Yes, it completes correctly for me too, but after pressing Return
a garbage character is appended at the end. I also see this behavior when setting breakpoints at some (but not all) functions.
I tried it again with your options and it still works fine for me. Return doesn't append any garbage characters.
Hmm... Maybe some of my other plugins causes this. When I have more time I'll try to disable everything besides nvim-dap and test. I'll report back if I find anything.
Ok, Coc.nvim plugin was the culprit, specifically these lines:
if exists('*complete_info')
inoremap <expr> <cr> complete_info()["selected"] != "-1" ? "\<C-y>" : "\<C-g>u\<CR>"
else
inoremap <expr> <cr> pumvisible() ? "\<C-y>" : "\<C-g>u\<CR>"
endif
Sorry for wasting your time, I should've checked with clean config right away before reporting a bug.
Debug adapter definition and debug configuration
Debug adapter version
vscode-cpptools v1.17.5
Steps to Reproduce
1) In the REPL window type
2) Press
3) Press ![2023-09-15_10-59](https://github.com/mfussenegger/nvim-dap/assets/38672094/cd8085b4-754c-4a7c-87a5-5cb71c774a45)
-exec i bre
:<C-x><C-o>
to trigger autocompletion:<CR>
to confirm the suggestion:Expected Result
The completed command should be
exec -i breakpoints
.Actual Result
An additional random(?) character is appended to the end of the command.