Улучшен алгоритм сортировки и исправлен недочет с лишней пустой строкой при открытии файлов

This commit is contained in:
Igor Timofeev
2017-03-20 15:14:34 +03:00
parent 932d018d0a
commit 414eb20cdd
3 changed files with 41 additions and 13 deletions

View File

@@ -625,6 +625,7 @@ end
local function loadFile(path)
newFile()
table.remove(mainWindow.codeView.lines, 1)
local file = io.open(path, "r")
for line in file:lines() do
line = removeWindowsLineEndings(removeTabs(line))