increase code readibility

This commit is contained in:
Takase
2021-09-07 14:59:03 +02:00
committed by Francesco Abbate
parent 97493a1a4e
commit fb907c9bf4
+2 -1
View File
@@ -138,7 +138,8 @@ function Doc:get_selection_text(limit)
end end
function Doc:has_selection() function Doc:has_selection()
local line1, col1, line2, col2 = self:get_selection(false) return line1 ~= line2 or col1 ~= col2 local line1, col1, line2, col2 = self:get_selection(false)
return line1 ~= line2 or col1 ~= col2
end end
function Doc:sanitize_selection() function Doc:sanitize_selection()