Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
thegrb93 committed Aug 28, 2024
1 parent 3eb3330 commit 5302095
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/starfall/sflib.lua
Original file line number Diff line number Diff line change
Expand Up @@ -818,9 +818,9 @@ function SF.GetLines(str)
local current_pos = 1
local lineN = 0
return function()
local start_pos, end_pos = string_find( str, "\r?\n", current_pos )
local start_pos, end_pos = string.find( str, "\r?\n", current_pos )
if start_pos then
local ret = string_sub( str, current_pos, start_pos - 1 )
local ret = string.sub( str, current_pos, start_pos - 1 )
current_pos = end_pos + 1
lineN = lineN + 1
return lineN, ret
Expand Down

0 comments on commit 5302095

Please sign in to comment.