Permalink
Browse files

fix line count not updating problem

  • Loading branch information...
akariv committed Apr 6, 2016
1 parent eb3b27e commit e7b731cc3bf18f125a3477cc11336dc8a09ee23e
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/services/os-datastore.js
@@ -317,7 +317,7 @@ module.exports.readContents = function(descriptor, options) {
descriptor.data = data;
descriptor.countOfLines = 0;
for (var i = 0; i < data.length; i++) {
if (data[i] == '\n') {
if (data[i] == '\n' || data[i] == 10) {
descriptor.countOfLines ++;
}
}

0 comments on commit e7b731c

Please sign in to comment.