Index: editors/lite/Makefile =================================================================== --- editors/lite/Makefile +++ editors/lite/Makefile @@ -1,5 +1,6 @@ PORTNAME= lite PORTVERSION= 1.11 +PORTREVISION= 1 CATEGORIES= editors PKGNAMESUFFIX= -editor # PORTNAME alone is too vague Index: editors/lite/files/patch-data_core_init.lua =================================================================== --- editors/lite/files/patch-data_core_init.lua +++ editors/lite/files/patch-data_core_init.lua @@ -1,6 +1,6 @@ ---- data/core/init.lua.orig 2021-01-09 16:02:57 UTC -+++ data/core/init.lua -@@ -82,7 +82,7 @@ function core.init() +--- data/core/init.lua.orig 2024-01-27 11:02:22.983646000 +0100 ++++ data/core/init.lua 2024-01-27 11:34:29.436743000 +0100 +@@ -82,7 +82,7 @@ CommandView = require "core.commandview" Doc = require "core.doc" @@ -9,7 +9,13 @@ local files = {} for i = 2, #ARGS do local info = system.get_file_info(ARGS[i]) or {} -@@ -131,16 +131,16 @@ local function delete_temp_files() +@@ -126,21 +126,21 @@ + end + + +-local temp_uid = (system.get_time() * 1000) % 0xffffffff ++local temp_uid = math.modf((system.get_time() * 1000) % 0xffffffff) + local temp_file_prefix = string.format(".lite_temp_%08x", temp_uid) local temp_file_counter = 0 local function delete_temp_files() @@ -29,7 +35,7 @@ .. string.format("%06x", temp_file_counter) .. (ext or "") end -@@ -174,16 +174,18 @@ function core.load_plugins() +@@ -174,16 +174,18 @@ function core.load_plugins() local no_errors = true @@ -52,7 +58,7 @@ return no_errors end -@@ -464,7 +466,7 @@ function core.on_error(err) +@@ -464,7 +466,7 @@ function core.on_error(err) -- write error to file Index: editors/lite/files/patch-data_core_statusview.lua =================================================================== --- /dev/null +++ editors/lite/files/patch-data_core_statusview.lua @@ -0,0 +1,11 @@ +--- data/core/statusview.lua.orig 2024-01-27 11:02:20.202307000 +0100 ++++ data/core/statusview.lua 2024-01-27 11:34:30.969793000 +0100 +@@ -106,7 +106,7 @@ + col > config.line_limit and style.accent or style.text, "col: ", col, + style.text, + self.separator, +- string.format("%d%%", line / #dv.doc.lines * 100), ++ string.format("%d%%", line // #dv.doc.lines * 100), + }, { + style.icon_font, "g", + style.font, style.dim, self.separator2, style.text,