From f52fffbff69e43720dcced5323ef5e95fefc0e56 Mon Sep 17 00:00:00 2001 From: Joe Lim <50560759+joelim-work@users.noreply.github.com> Date: Mon, 30 Oct 2023 09:40:39 +1100 Subject: [PATCH] Force sync when writing to cut/copy buffer file (#1480) --- app.go | 1 + 1 file changed, 1 insertion(+) diff --git a/app.go b/app.go index 41316339..0c40d6c5 100644 --- a/app.go +++ b/app.go @@ -164,6 +164,7 @@ func saveFiles(list []string, cp bool) error { fmt.Fprintln(files, f) } + files.Sync() return nil }