Commit 4c36d7fd authored by Leo Iannacone's avatar Leo Iannacone

use correctly last_lines variable

parent 4ea3c67b
......@@ -115,7 +115,7 @@ function __send_file(event_name, socket, data, last_lines) {
}
data.file.orig_name = file_path.split('/').pop();
if (last_lines > 0)
data.file.content = content.split('\n').slice(-25).join('\n');
data.file.content = content.split('\n').slice(-last_lines).join('\n');
else
data.file.content = content;
data.file.path = file_path.replace(config.debomatic.path, config.routes.debomatic);
......
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