Complete semicolon when needed

This commit is contained in:
Kirill Bulatov 2020-09-08 01:24:16 +03:00
parent 57a260f579
commit 9fb83211f9
6 changed files with 30 additions and 26 deletions

View file

@ -13,7 +13,7 @@ use crate::completion::{
};
pub(super) fn complete_attribute(acc: &mut Completions, ctx: &CompletionContext) -> Option<()> {
if ctx.mod_is_prev {
if ctx.mod_under_caret.is_some() {
return None;
}