Skip to content

Commit 2be6ae4

Browse files
author
thyttan
committed
messagegui: fix keep idxSpan.start=0
1 parent c04ec08 commit 2be6ae4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

apps/messagegui/app.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,9 @@ function showMessagesScroller(msg, persist, alreadyProcessed) {
337337
lines : allLines,
338338
titleLines : titleLines,
339339
idxSpan: {
340-
start : Math.min(idxSpan.start, alreadyProcessed.idxSpan.start||MESSAGES.length),
340+
start : Math.min(idxSpan.start,
341+
(alreadyProcessed.idxSpan.start===undefined) ?
342+
MESSAGES.length : alreadyProcessed.idxSpan.start),
341343
stop : Math.max(idxSpan.stop, alreadyProcessed.idxSpan.stop||0)}
342344
};
343345

0 commit comments

Comments
 (0)