From af9d7a16f3d14faa494bb878e99d7bb4ce0d2375 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sun, 6 Mar 2022 02:11:28 -0800 Subject: [PATCH] starting to convert all file reads to the new API For starters, this detail was puzzling when I returned to the Game of Life app. --- life.tlv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/life.tlv b/life.tlv index 12b44d2..0693e7f 100644 --- a/life.tlv +++ b/life.tlv @@ -165,7 +165,7 @@ >function load_file(window, filename) > local infile = io.open(filename, 'r') > if infile == nil then return end - > local line_index = lines + > local line_index = lines -- quarter of the way down in pixels > for line in infile:lines() do > if line:sub(1,1) ~= '!' then -- comment; plaintext files can't have whitespace before comments > local col_index = cols