Commit 0e6593f7 authored by Leo Iannacone's avatar Leo Iannacone

fix get correct content

parent a359743b
......@@ -340,7 +340,7 @@ function Page_Distrubion(socket) {
file.append(new_content);
} else {
// always show only config.file.num_lines lines in preview
var content = content.html().replace(/\n$/, '').split('\n');
var content = file_content.html().replace(/\n$/, '').split('\n');
content = content.concat(new_content.replace(/\n$/, '').split('\n'));
content = content.slice(-config.file.num_lines).join('\n');
file_content.html(content);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment