Shougo / ddc.vim

Dark deno-powered completion framework for Vim/Neovim
MIT License
676 stars 32 forks source link

Regression: `<C-f>` is appended to `indentkeys` #109

Closed e-kwsm closed 2 years ago

e-kwsm commented 2 years ago

Warning: I will close the issue without the minimal init.vim and the reproduction instructions.

Problems summary

If I insert a word that ends with dodo, sudo, or todo—in a shell file, then <C-f> is appended.

This bisects to e54a5c674d9107c886c3cf8e39a9f6394645f9b8 (#105; the revisions of the other plugins shown below are pinned).

Expected

<C-f> is not appended.

Environment Information

Provide a minimal init.vim/vimrc without plugin managers (Required!)

" Your minimal init.vim/vimrc
set runtimepath-=~/.config/nvim
set runtimepath-=~/.config/nvim/after
set runtimepath-=~/.local/share/nvim/site
set runtimepath-=~/.local/share/nvim/site/after

set runtimepath+=path/to/denops.vim
set runtimepath+=path/to/ddc.vim
set runtimepath+=path/to/ddc-source-around
set runtimepath+=path/to/ddc-ui-native

call ddc#custom#patch_global('ui', 'native')
call ddc#custom#patch_global('sources', ['around'])

call ddc#enable()

How to reproduce the problem from neovim/Vim startup (Required!)

  1. nvim -u vimrc -c 'setf sh'
  2. insert sudo

Screenshot (if possible)

sudo

Upload the log messages by :redir and :message (if errored)

e-kwsm commented 2 years ago

Also happens with the following reserved words

but does not with

Shougo commented 2 years ago

Oh, the indentation is broken.

e-kwsm commented 2 years ago

<C-f> is appended to one of indentkeys: this also happens with elif and except in Python.

Shougo commented 2 years ago

Fixed. Please update ddc-ui-native.

e-kwsm commented 2 years ago

Thank you.