Commit ebdc0f3
committed
Fixing very old bug with g:clang_close_preview set to 1 and pressing key (like semicolon) to close selection ...
When g:clang_close_preview is set to 1 then preview window should close whenever completion is selected.
This worked when enter key was pressed or <c-y>, but when user just wanted to continue the code for example
they pressed a semicolon, then preview window did not close, just the selection menu.
After this it will close even in this scenario (if g:clang_close_preview is set to 1).
Intentionallly in this case the first replacable is not selected (TriggerSnippet() is not called),
this is as it was before in this scenario, so user can continue the writing of the code as they started.
(They already started typing the code after completion and exited from completion selection menu by doing so.)1 parent caeade8 commit ebdc0f3
1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
551 | 551 | | |
552 | 552 | | |
553 | 553 | | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
554 | 558 | | |
555 | 559 | | |
556 | 560 | | |
| |||
593 | 597 | | |
594 | 598 | | |
595 | 599 | | |
596 | | - | |
597 | | - | |
598 | | - | |
599 | | - | |
600 | 600 | | |
601 | 601 | | |
602 | 602 | | |
| |||
0 commit comments