Update: 2024-11-21

This commit is contained in:
2024-11-21 14:02:29 +02:00
parent 7da57cd023
commit 74e444a83f
1010 changed files with 271 additions and 574412 deletions

View File

@@ -42,7 +42,7 @@ function M:peek()
)
else
lines = lines:gsub("\t", string.rep(" ", PREVIEW.tab_size))
ya.preview_widgets(self, { ui.Text.parse(lines):area(self.area) })
ya.preview_widgets(self, { ui.Paragraph.parse(self.area, lines) })
end
end
@@ -63,7 +63,7 @@ function M:fallback_to_builtin()
ya.manager_emit("peek", { bound, only_if = self.file.url, upper_bound = true })
elseif err and not err:find("cancelled", 1, true) then
ya.preview_widgets(self, {
ui.Text({ ui.Line(err):reverse() }):area(self.area),
ui.Paragraph(self.area, { ui.Line(err):reverse() }),
})
end
end