aboutsummaryrefslogtreecommitdiff
path: root/nomsu_tree.lua
diff options
context:
space:
mode:
Diffstat (limited to 'nomsu_tree.lua')
-rw-r--r--nomsu_tree.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/nomsu_tree.lua b/nomsu_tree.lua
index 7c70489..c2d409e 100644
--- a/nomsu_tree.lua
+++ b/nomsu_tree.lua
@@ -359,6 +359,9 @@ Tree("Action", {
nomsu:append(next_space, arg_nomsu)
next_space = "\n.."
end
+ if next_space == " " and #(tostring(nomsu):match("[^\n]*$")) > MAX_LINE then
+ next_space = "\n.."
+ end
end
end
return nomsu