Skip to content

Commit 434a040

Browse files
committed
chore: Remove leftover while-loop killswitch
1 parent 7c28610 commit 434a040

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

lua/mkdnflow/cursor.lua

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,7 @@ M.goTo = function(pattern, reverse)
8282
left, right = find_patterns(line, pattern, reverse, col)
8383
-- As long as a match hasn't been found, keep looking as long as possible!
8484
local continue = true
85-
local iters = 0
86-
while continue and iters < 1000 do
87-
iters = iters + 1
88-
if iters == 1000 then
89-
vim.print('Terminated loop at 1000')
90-
end
85+
while continue do
9186
-- See if there's a match on the current line.
9287
if left and right then
9388
-- If there is, see if the cursor is before the match (or after if rev = true)

0 commit comments

Comments
 (0)