# Emojis autocomplete issue with "emoji autocomplete min chars" \> 0

**URL:** https://meta.discourse.org/t/emojis-autocomplete-issue-with-emoji-autocomplete-min-chars-0/156096
**Category:** Bug
**Created:** [June 27, 2020, 11:35am UTC](https://meta.discourse.org/t/emojis-autocomplete-issue-with-emoji-autocomplete-min-chars-0/156096 "2020-06-27T11:35:03Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [June 27, 2020, 11:35am UTC](https://meta.discourse.org/t/emojis-autocomplete-issue-with-emoji-autocomplete-min-chars-0/156096/1 "2020-06-27T11:35:03Z")

</div>

I believe it happens since a recent upgrade (2.5 to 2.6.0.beta1).

If there is any text in front of the same line (even just a space), hen I start to write `:` following by letters or keywords, autocompletion won’t be displayed.  
However, if I start to delete letters after `:`, then the autocomplete is displayed.

If I type `:` on a new line, it works perfectly.

Here I show the 3 cases:

1. writing an emoji as the first line element (shows the autocompletion)
2. writing an emoji after existing text (don’t show the autocompletion)
3. removing a character (shows the autocompletion)

 ![TbHGrhYEvP](https://global.discourse-cdn.com/meta/original/3X/6/2/626541a06d1013998bc8bc1c7c208a3a3d7e22bf.gif)  
I tried in [safe mode](https://meta.discourse.org/t/53504?silent=true) and it didn’t fix the issue.

edit: the issue disappears if I set **emoji autocomplete min chars** to 0.

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [June 27, 2020, 11:44am UTC](https://meta.discourse.org/t/emojis-autocomplete-issue-with-emoji-autocomplete-min-chars-0/156096/2 "2020-06-27T11:44:17Z")

</div>

I barely recall someone complaining that accented characters and emojis don’t play nice. It may have been related to that fix but This is language specific, can’t reproduce this in forums on english language.

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [June 27, 2020, 11:52am UTC](https://meta.discourse.org/t/emojis-autocomplete-issue-with-emoji-autocomplete-min-chars-0/156096/3 "2020-06-27T11:52:21Z")

</div>

I didn’t encounter this issue before and it happens without typing accented characters in the keywords though. Also, **enable inline emoji translation** is disabled.  
I upgraded another Discourse installation and the same issue happened, so I guess that’s related to both this setting and the new version.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [June 27, 2020, 6:40pm UTC](https://meta.discourse.org/t/emojis-autocomplete-issue-with-emoji-autocomplete-min-chars-0/156096/4 "2020-06-27T18:40:49Z")

</div>

> [@Canapin](#):
>
> If there is any text in front of the same line (even just a space), hen I start to write `:` following by letters or keywords, autocompletion won’t be displayed.

I can’t reproduce this here on meta? I have text on the same line, followed by `:`, and I get emoji autocomplete just fine?

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [June 27, 2020, 9:51pm UTC](https://meta.discourse.org/t/emojis-autocomplete-issue-with-emoji-autocomplete-min-chars-0/156096/5 "2020-06-27T21:51:56Z")

</div>

Did you change the **emoji autocomplete min chars** setting to 1? I don’t have the issue when it is set to 0.

---

<div class="post-metadata">

### Author: ![JimPas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jimpas/32/148179_2.png) [@JimPas](https://meta.discourse.org/u/JimPas)
#### Post date: [June 28, 2020, 1:19am UTC](https://meta.discourse.org/t/emojis-autocomplete-issue-with-emoji-autocomplete-min-chars-0/156096/6 "2020-06-28T01:19:13Z")

</div>

My setting was set to 0 by default and we’ve never had a problem. 🙂  
Edit: I changed my setting to 1, tried it on a reply post and it still worked fine.  
Edit2: FYI, my site is in English.

---

<div class="post-metadata">

### Author: ![Benjamin\_D](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/benjamin_d/32/277831_2.png) [@Benjamin\_D](https://meta.discourse.org/u/Benjamin_D)
#### Post date: [June 28, 2020, 6:29am UTC](https://meta.discourse.org/t/emojis-autocomplete-issue-with-emoji-autocomplete-min-chars-0/156096/7 "2020-06-28T06:29:08Z")

</div>

> [@itsbhanusharma](#):
>
> I barely recall someone complaining that accented characters and emojis don’t play nice. It may have been related to that fix but This is language specific, can’t reproduce this in forums on english language.

I think you’re right, I can repro on my instance (2.6) which is in french, but the issue occurs even if there are no accented characters written on the line as `canapin` said.

And it works fine on another one, 2.5.0.beta6, also in french

---

<div class="post-metadata">

### Author: ![Richie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/richie/32/115110_2.png) [@Richie](https://meta.discourse.org/u/Richie)
#### Post date: [June 28, 2020, 5:15pm UTC](https://meta.discourse.org/t/emojis-autocomplete-issue-with-emoji-autocomplete-min-chars-0/156096/8 "2020-06-28T17:15:25Z")

</div>

I’ve noticed the `:t2:` skin tone suggestions stopped working a while ago too. Is this related?

Even on here on meta 👍🏻

A single colon starts the suggestions fine:

 ![image](https://global.discourse-cdn.com/meta/original/3X/c/b/cbb19b7088633f6d535af746681524d64690c13a.jpeg)

Then I press Tab or click the suggestion I want.

I then type another colon to change the skin tone.

Put I get no prompts or suggestions now:

 ![image](https://global.discourse-cdn.com/meta/original/3X/0/4/0485423aad1a299be59c60ba1104794c259da564.jpeg)

If I manually type in the skin tone it does actually display correctly.

 ![image](https://global.discourse-cdn.com/meta/original/3X/f/b/fb7f84a054eda4cf50bd3127f8d0aca634d9b610.jpeg)

🤷‍♂️

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [June 30, 2020, 7:41am UTC](https://meta.discourse.org/t/emojis-autocomplete-issue-with-emoji-autocomplete-min-chars-0/156096/9 "2020-06-30T07:41:21Z")

</div>

Very nice catch @Canapin with excellent repro steps.

Fixed per:

[https://review.discourse.org/t/fix-emoji-autocomplete-min-chars-failing-when-not-0/13040](https://review.discourse.org/t/fix-emoji-autocomplete-min-chars-failing-when-not-0/13040)

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [June 30, 2020, 6:51pm UTC](https://meta.discourse.org/t/emojis-autocomplete-issue-with-emoji-autocomplete-min-chars-0/156096/10 "2020-06-30T18:51:58Z")

</div>


