summaryrefslogtreecommitdiff
path: root/menu.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-08-13 22:19:21 -0300
committerpommicket <pommicket@gmail.com>2023-08-13 22:19:21 -0300
commit79af91046d6c9f8ddca52dee1cb72181168c0f73 (patch)
tree82b70ee555d20fc6036a7f97bf94f3853130d64a /menu.c
parent74c32a957d8533f746c960e8f726670e3d6b1baf (diff)
fix ask-reload menu
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/menu.c b/menu.c
index 1df07ea..e126fd1 100644
--- a/menu.c
+++ b/menu.c
@@ -329,6 +329,8 @@ static void ask_reload_menu_update(Ted *ted) {
break;
case POPUP_NO:
menu_close(ted);
+ if (buffer)
+ buffer_ignore_changes_on_disk(buffer);
break;
case POPUP_CANCEL: assert(0); break;
}