[Github-comments] [geany] document: show informational doc message after first reload (#672)
Colomban Wendling
notifications at xxxxx
Fri Oct 2 22:28:21 UTC 2015
> @@ -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);
It probably would be great if we could drop the history without actually reloading a second time (`sci_empty_undo_buffer`/`document_undo_clear`, but I'm not 100% sure why/if we don't have a unified way)
---
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/672/files#r41074382
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20151002/f1ee8500/attachment.html>
More information about the Github-comments
mailing list