Skip to main content

completed

Function completed 

Source
fn completed(
    content: &mut Content,
    closed: bool,
    used: &[Used],
) -> Option<EmojiHint>
Expand description

What comes of the text of content being as it is now, for the emoji that are written by their short codes: the emoji to offer for the one being typed, if one is, ranked by the ones used. And if closed, which is whether the last thing done was typing a colon, and that colon closed a short code, the emoji is put in its place.