Skip to content
This repository has been archived by the owner on Mar 5, 2020. It is now read-only.

Line complete adds whitespace #42

Closed
denarced opened this issue Feb 24, 2019 · 1 comment · Fixed by #46
Closed

Line complete adds whitespace #42

denarced opened this issue Feb 24, 2019 · 1 comment · Fixed by #46

Comments

@denarced
Copy link

There's a rather annoying bug that affects files of all types when using this plugin. To reproduce:

  1. Enter insert mode
  2. Optionally type something
  3. Complete line (vim help tag: i_CTRL-X_CTRL-L), select a line, and press enter

What's suppose to happen is that the newly added line is exactly like the line that was selected and the cursor is moved to the next line. What happens is that whitespace (so far I've seen a single space added) is added to the end of the edited line.

I verified this by first using vim with "vim -u NONE"; the issue disappeared. Then by disabling my plugins one at a time. The behavior stopped when vim-minisnip was commented out.

Specs:

  • Vim 8.0 (patches 1-1453)
  • Ubuntu 18.04.2 LTS 64 bit (all packages up to date)
  • Installed vim packages: vim, vim-common, vim-runtime, vim-tiny
  • Plugin manager: vim-plug
  • vim-minisnip changeset: b5bcaff
denarced added a commit to denarced/vimrc that referenced this issue Feb 24, 2019
@arp242
Copy link

arp242 commented Jul 29, 2019

Essentially same as #43

joereynolds pushed a commit that referenced this issue Nov 13, 2019
<CR> isn't the standard Vim mapping to accept the completion, <C-y> is.
This is just a personal preference that snuck in when I wrote the
completion (#6).

Fixes #42 and #43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants