<p></p>
<blockquote>
<p>Kind of like making the bitwise shift operators sometimes mean "read/write IO stream" <g-emoji class="g-emoji" alias="smile" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f604.png">😄</g-emoji></p>
</blockquote>
<p>Well, at least that one basically doesn't make any sense in C with the types involved.  It's not mimicking the syntax for 99.8% identical behavior and .2% surprise <g-emoji class="g-emoji" alias="grin" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f601.png">😁</g-emoji></p>
<blockquote>
<p><a class="user-mention" data-hovercard-type="user" data-hovercard-url="/users/b4n/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/b4n">@b4n</a> now that you are returning <code>nullptr</code> from <code>pixels()</code> but you did not put a check for that on the return value of every use of pixels() all you have done is shift the problem. <g-emoji class="g-emoji" alias="stuck_out_tongue_winking_eye" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f61c.png">😜</g-emoji></p>
</blockquote>
<p>Not really: at least to the C guy I am, reading 0 bytes from <code>nullptr</code> or 0 bytes from a valid pointer doesn't seem much different.</p>
<blockquote>
<p>Now we can explain it, I suspect that it would be best to pass it to Neil to decide the best solution for fixing drawing indicators on zero sized code points. He can best determine a solution that fits with his aspirations of <code>noexcept</code> everywhere and other performance issues.</p>
</blockquote>
<p>Agreed.  I wanted to understand the issue and then provide a patch that Fedora could use to stop these repeated crashes.  Now it'll be time to hand it out to Neil and let it live :)</p>
<blockquote>
<p><a class="user-mention" data-hovercard-type="user" data-hovercard-url="/users/b4n/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/b4n">@b4n</a> <a class="user-mention" data-hovercard-type="user" data-hovercard-url="/users/codebrainz/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/codebrainz">@codebrainz</a> just think of C++ as Sea++ a language which no longer has a connection to C, and that does its own thing, like Java or D, thats effectively what it has become smile</p>
</blockquote>
<p>And they kept the C syntax weirdies like <code>&array[index]</code>, very clever on their part <g-emoji class="g-emoji" alias="stuck_out_tongue_closed_eyes" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f61d.png">😝</g-emoji></p>
<p>OK, enough trolling about C++ on my part for the moment <g-emoji class="g-emoji" alias="slightly_smiling_face" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f642.png">🙂</g-emoji></p>

<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#issuecomment-740396343">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ6AU7JPJIGF6HKFPEDSTW5WDANCNFSM4UHMIKQQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAIOWJ7KGE7U3PZUJELSRQLSTW5WDA5CNFSM4UHMIKQ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFQQY2NY.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#issuecomment-740396343",
"url": "https://github.com/geany/geany-plugins/issues/1041#issuecomment-740396343",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>