<p>In <a href="https://github.com/geany/geany/pull/672#discussion_r43424206">src/document.c</a>:</p>
<pre style='color:#555'>> @@ -1545,6 +1564,21 @@ gboolean document_reload_force(GeanyDocument *doc, const gchar *forced_enc)
>    pos = sci_get_current_position(doc->editor->sci);
>    new_doc = document_open_file_full(doc, NULL, pos, doc->readonly, doc->file_type, forced_enc);
>  
> +  if (file_prefs.keep_edit_history_on_reload && file_prefs.show_keep_edit_history_on_reload_msg)
> +  {
> +          bar = document_show_message(doc, GTK_MESSAGE_INFO,
> +                                          on_keep_edit_history_on_reload_response,
> +                                          GTK_STOCK_OK, GTK_RESPONSE_ACCEPT,
> +                                          _("Discard history"), GTK_RESPONSE_NO,
> +                                          NULL, 0, _("The buffer's previous state is stored in the history. "
> +                                          "Undoing restores it. You can disable this by discarding the history upon "
> +                                          "reload. This message will not be displayed again. "
> +                                          "Your choice can be changed in the various preferences."),
</pre>
<p><a href="https://github.com/elextr" class="user-mention">@elextr</a> What about</p>

<blockquote>
<p>The buffer's previous state is stored in the undo history, and then file reloading can be undone.  You can disable this by discarding the history upon reload.  This message will not be displayed again, but your can change the behavior later in the various preference.</p>
</blockquote>

<p>While I generally like short sentences, I feel like the 5 sentences here are a bit heavy to read.</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#r43424206">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ1Si0S_CpT8dxk3GG3EvdfA_umyiks5pAlqMgaJpZM4GHluE.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#r43424206"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>