From df9a82a9711faf20c705d806fceab5c154b37f4c Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sat, 28 Apr 2018 17:08:28 -0700 Subject: Overhaul of command-line API. It's a bit cleaner now. --- nomsu_tree.moon | 3 +++ 1 file changed, 3 insertions(+) (limited to 'nomsu_tree.moon') diff --git a/nomsu_tree.moon b/nomsu_tree.moon index 5a505d0..28f7acf 100644 --- a/nomsu_tree.moon +++ b/nomsu_tree.moon @@ -219,6 +219,9 @@ Tree "Action", next_space = "" nomsu\append next_space, arg_nomsu next_space = "\n.." + + if next_space == " " and #(tostring(nomsu)\match("[^\n]*$")) > MAX_LINE + next_space = "\n.." return nomsu -- cgit v1.2.3