diff --git a/lua/cokeline/history.lua b/lua/cokeline/history.lua index a6b37ab..f9aab0c 100644 --- a/lua/cokeline/history.lua +++ b/lua/cokeline/history.lua @@ -68,7 +68,7 @@ function History:iter() return function() local buf = self.data[read] if buf then - read = (read % self.cap) + 1 + read = read + 1 return buffers.get_buffer(buf) end end