Don't update read marker if no more lines could be fetched
Fixes disappearing read marker (set to -1)
This commit is contained in:
parent
b9e258e04a
commit
90b29cc5ad
1 changed files with 3 additions and 1 deletions
|
@ -434,7 +434,9 @@ function($rootScope,
|
||||||
).then(function(lineinfo) {
|
).then(function(lineinfo) {
|
||||||
// delete old lines and add new ones
|
// delete old lines and add new ones
|
||||||
var oldLength = buffer.lines.length;
|
var oldLength = buffer.lines.length;
|
||||||
var setReadmarker = (buffer.lastSeen >= 0);
|
// Whether to set the readmarker to the middle position
|
||||||
|
// Don't do that if we didn't get any more lines than we already had
|
||||||
|
var setReadmarker = (buffer.lastSeen >= 0) && (oldLength !== buffer.lines.length);
|
||||||
buffer.lines.length = 0;
|
buffer.lines.length = 0;
|
||||||
buffer.requestedLines = 0;
|
buffer.requestedLines = 0;
|
||||||
// Count number of lines recieved
|
// Count number of lines recieved
|
||||||
|
|
Loading…
Reference in a new issue