From d009390cc4fa891d8c6399e12bb83567606156e2 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Wed, 29 Jun 2022 17:58:58 -0700 Subject: bugfix: save previous file when dropping a new one on --- main.lua | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'main.lua') diff --git a/main.lua b/main.lua index 63c0e8d..b63c7fc 100644 --- a/main.lua +++ b/main.lua @@ -190,6 +190,11 @@ function initialize_font_settings(font_height) end function App.filedropped(file) + -- first make sure to save edits on any existing file + if Next_save then + save_to_disk(Lines, Filename) + end + -- clear the slate for the new file App.initialize_globals() -- in particular, forget all undo history Filename = file:getFilename() file:open('r') -- cgit 1.4.1-2-gfad0 53e3cc1204cde0f59c0d1230694b5ad5682c698'>this commit Profanity fork with TTY improvementsdanisanti <danisanti@tilde.institute>
about summary refs log tree commit diff stats
path: root/tests/unittests/test_muc.h
blob: 8df54a5d8c0ad7dd97b611abdd3759fa92a7e33b (plain) (blame)
1
2
3
4
5
6
7
8
9