<p></p>
<p>Hello. I run geany 1.37.1 on Fedora 33 and Geany crashes when I try to put a space between an emoji and Unicode VARIATION SELECTOR-16.</p>
<p>Steps to reproduce:</p>
<ol>
<li>Enable the Spell Check plugin and enable spell checking. I use en_US in case it matters.</li>
<li>Insert an emoji with VARIATION SELECTOR-16, e.g. <g-emoji class="g-emoji" alias="snowman_with_snow" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2603.png">☃️</g-emoji> (select the entire line form the <em>source</em> of this comment or <a href="https://blog.tomayac.com/2019/12/12/same-same-but-different-unicode-variation-selector-16/#the-unicode-variation-selector-16" rel="nofollow">from here</a>).</li>
<li>Move the cursor between the two characters:<br>
<a target="_blank" rel="noopener noreferrer" href="https://user-images.githubusercontent.com/2401856/100599500-673d0180-3300-11eb-9cc8-d170ba6ea0d9.png"><img src="https://user-images.githubusercontent.com/2401856/100599500-673d0180-3300-11eb-9cc8-d170ba6ea0d9.png" alt="_" style="max-width:100%;"></a></li>
<li>Type "space" (or any other character it seems).</li>
<li>Geany crashes (aborts).</li>
</ol>
<pre><code>/usr/include/c++/10/bits/stl_vector.h:1063: std::vector<_Tp, _Alloc>::const_reference std::vector<_Tp, _Alloc>::operator[](std::vector<_Tp, _Alloc>::size_type) const [with _Tp = unsigned char; _Alloc = std::allocator<unsigned char>; std::vector<_Tp, _Alloc>::const_reference = const unsigned char&; std::vector<_Tp, _Alloc>::size_type = long unsigned int]: Assertion '__builtin_expect(__n < this->size(), true)' failed.
</code></pre>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany-plugins/issues/1041">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ3OC42QG7TKX5PFV43SSNZDFANCNFSM4UHMIKQQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAIOWJ7FZIDTZYB5ZBP4BXTSSNZDFA5CNFSM4UHMIKQ2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4LHHNFKQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany-plugins/issues/1041",
"url": "https://github.com/geany/geany-plugins/issues/1041",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>