Skip to content

Instantly share code, notes, and snippets.

@heavenshell
Created November 23, 2016 02:54
Show Gist options
  • Save heavenshell/119fc8cf2d43a36da31957b367e4665e to your computer and use it in GitHub Desktop.
Save heavenshell/119fc8cf2d43a36da31957b367e4665e to your computer and use it in GitHub Desktop.
diff --git a/src/edit.c b/src/edit.c
index 0d9e9d4..bedda9c 100644
--- a/src/edit.c
+++ b/src/edit.c
@@ -2820,7 +2820,7 @@ set_completion(colnr_T startcol, list_T *list)
compl_cont_status = 0;
compl_curr_match = compl_first_match;
- if (compl_no_insert || compl_no_select)
+ if ((compl_no_insert || compl_no_select) && list->lv_len > 1)
{
ins_complete(K_DOWN, FALSE);
if (compl_no_select)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment