fix: selected code header text (#141)

This commit is contained in:
yetone 2024-08-21 23:38:27 +08:00 committed by GitHub
parent 84d037e54d
commit c41ad591a1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -435,11 +435,11 @@ function Sidebar:render_selected_code_header()
selected_code_lines_count = #selected_code_lines
end
local header_text = " Selected Code"
local header_text = " Selected Code"
.. (
selected_code_lines_count > selected_code_max_lines_count
and " (Show only the first " .. tostring(selected_code_max_lines_count) .. " lines)"
or ""
and " (Show only the first " .. tostring(selected_code_max_lines_count) .. " lines)"
or ""
)
self:do_render_header(