<p>In <a href="https://github.com/geany/geany/pull/672#discussion_r41074607">src/document.c</a>:</p>
<pre style='color:#555'>> @@ -1520,6 +1520,24 @@ void document_open_files(const GSList *filenames, gboolean readonly, GeanyFilety
>  }
>  
>  
> +static void on_keep_edit_history_on_reload_response(GtkWidget *bar, gint response_id, GeanyDocument *doc)
> +{
> +  if (response_id == GTK_RESPONSE_NO)
> +  {
> +          file_prefs.keep_edit_history_on_reload = FALSE;
> +          document_reload_force(doc, doc->encoding);
</pre>
<p>This way it's a one-liner, and the whole infomsg is a one-timer. So it's not really worth any optimization.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/geany/geany/pull/672/files#r41074607">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ8-vG4eHePKCKLQC8qpkVyIjRe1Qks5o3v0LgaJpZM4GHluE.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/geany/geany/pull/672/files#r41074607"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>