From 0ccd4de98d9f432053552edde65691888b564fdf Mon Sep 17 00:00:00 2001 From: Leo Tenenbaum Date: Sat, 6 Mar 2021 16:40:07 -0500 Subject: don't reload file when opened while already open --- ted.c | 1 - 1 file changed, 1 deletion(-) diff --git a/ted.c b/ted.c index e3c6f47..8f999a6 100644 --- a/ted.c +++ b/ted.c @@ -234,7 +234,6 @@ static bool ted_open_file(Ted *ted, char const *filename) { for (u16 i = 0; i < TED_MAX_BUFFERS; ++i) { if (buffers_used[i]) { if (buffers[i].filename && paths_eq(path, buffers[i].filename)) { - buffer_reload(&buffers[i]); // make sure buffer is up to date with the file ted_switch_to_buffer(ted, &buffers[i]); return true; } -- cgit v1.2.3