Skip to content

init.lua with new linemode process? #1949

Closed Locked Answered by lpnh
bobblkabb asked this question in 1. Q&A
Discussion options

You must be logged in to vote

I see. The error message originates from the following expression:

			if actualyear = actualfileyear

To fix it, you can make the following change:

                        local actualyear = os.date("%Y", actualtime)
                        local size = f:size()
                        local actualfileyear = os.date("%Y", time)
-                       if actualyear = actualfileyear
+                       if actualyear == actualfileyear then
                                spans[#spans + 1] = ui.Span(size and ya.readable_size(size) or "")
                                spans[#spans + 1] = ui.Span(time and os.date("%b %d %Y", time // 1) or "")
                        else

However, using th…

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by bobblkabb
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
1. Q&A
Labels
None yet
2 participants