From 7e6d996a9d4ce3ef414307e688afd6b02ab68640 Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Tue, 18 Oct 2022 20:53:20 -0700 Subject: [PATCH] Don't reload current file --- lua/hflip.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/hflip.lua b/lua/hflip.lua index 5b9e8d1..7b45b3b 100644 --- a/lua/hflip.lua +++ b/lua/hflip.lua @@ -29,7 +29,7 @@ local function hflip() return end - for i = 1, #exts do + for i = 1, #exts - 1 do local j = (i + ext_index - 1) % #exts + 1 local next_path = name .. exts[j] if file_exists(next_path) then