From 765e8141c16659ce602fe21dd46ac1a001e57337 Mon Sep 17 00:00:00 2001 From: deuce <> Date: Tue, 8 Nov 2011 01:31:10 +0000 Subject: [PATCH] When serializing the lines, make the last line end in a hard CR. Fixes part one of the new word wrap bug. --- exec/fseditor.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/exec/fseditor.js b/exec/fseditor.js index ad90c652ba..e299eace5b 100644 --- a/exec/fseditor.js +++ b/exec/fseditor.js @@ -964,6 +964,8 @@ function make_strings(soft,embed_colour) var lastattr=7; var thisattr; + // Force the last line to be a hard CR. + line[line.length-1].hardcr=true; for(i=0; i<line.length; i++) { if(embed_colour) { for(j=0;j<line[i].text.length;j++) { -- GitLab