<p><b>@b4n</b> commented on this pull request.</p>

<hr>

<p>In <a href="https://github.com/geany/geany/pull/1697#discussion_r331466950">src/ui_utils.c</a>:</p>
<pre style='color:#555'>> @@ -304,6 +305,21 @@ static gchar *create_statusbar_statistics(GeanyDocument *doc,
                                g_string_append_printf(stats_str, "%d",
                                        sci_get_style_at(doc->editor->sci, pos));
                                break;
+                       case 'z':
+                               zoom = sci_get_zoom(doc->editor->sci);
+                               if (zoom != 0)
+                               {
+                                       gint size, percent;
+
+                                       size = sci_get_fontsize(doc->editor->sci, STYLE_DEFAULT);
+                                       if (size > 0)
+                                       {
+                                               percent = (size + zoom) * 100 / size;
</pre>
<p>Just FTR, this does not ask for any changes:</p>
<p>This will result in "0%" when zooming out 10 times on a 10pt font, but the font will actually still be visible because <a href="https://scintilla.org/ScintillaDoc.html#Zooming" rel="nofollow">Scintilla never shrinks fonts under 2pt</a>. However, the user will still have to zoom in 10 times to go back to 100%.</p>
<p>So, this comment is merely an "FTR", I think the behavior is good enough, and if we want to do something about it we should rather prevent actually getting the zoom factor under the minimal displayed value.</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/pull/1697?email_source=notifications&email_token=AAIOWJ34RGHXX3X737XZU4LQM4WIHA5CNFSM4EFEY7TKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCG5GLKA#pullrequestreview-297428392">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ6BZ5QYE7R2JNLVMITQM4WIHANCNFSM4EFEY7TA">mute the thread</a>.<img src="https://github.com/notifications/beacon/AAIOWJ6UF2IICGKBD5N4SC3QM4WIHA5CNFSM4EFEY7TKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCG5GLKA.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/pull/1697?email_source=notifications\u0026email_token=AAIOWJ34RGHXX3X737XZU4LQM4WIHA5CNFSM4EFEY7TKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCG5GLKA#pullrequestreview-297428392",
"url": "https://github.com/geany/geany/pull/1697?email_source=notifications\u0026email_token=AAIOWJ34RGHXX3X737XZU4LQM4WIHA5CNFSM4EFEY7TKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCG5GLKA#pullrequestreview-297428392",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>