diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2021-03-06 16:40:07 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2021-03-06 16:40:07 -0500 |
commit | 0ccd4de98d9f432053552edde65691888b564fdf (patch) | |
tree | b15d3c7a90aeb76f30703ef60a57993e137604ee /ted.c | |
parent | 88946161165f62b955c3c25b7d6760b77fac42c6 (diff) |
don't reload file when opened while already open
Diffstat (limited to 'ted.c')
-rw-r--r-- | ted.c | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -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; } |