From 30e360eb8f2c3065c44130c0a1de0c8efe2cbd12 Mon Sep 17 00:00:00 2001 From: Igor Timofeev Date: Sun, 15 Jan 2017 02:04:41 +0300 Subject: [PATCH] aefaef --- .DS_Store | Bin 18436 -> 18436 bytes Applications.txt | 2 +- Applications/.DS_Store | Bin 79876 -> 79876 bytes Applications/MineCodeIDE/MineCodeIDE.lua | 4 ++-- 4 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.DS_Store b/.DS_Store index ed27f62c0f54d7d2c0db1dde9f214ae9f067a199..5c29f80a4e716c7dada2b59cce9dba2b24a6954a 100644 GIT binary patch delta 26 icmZpfz}PZ@al;cuc2grA1tSZS$?L^DHXAElR0RNe;|SIO delta 18 acmZpfz}PZ@al;eE$r@Jvn~jw&ssaE;Oa~$W diff --git a/Applications.txt b/Applications.txt index 0edb41b4..973daa4d 100644 --- a/Applications.txt +++ b/Applications.txt @@ -886,7 +886,7 @@ icon="IgorTimofeev/OpenComputers/master/Applications/MineCodeIDE/Icon.pic", createShortcut="dock", forceDownload=true, - version=1.15, + version=1.16, }, { name="MineOS/Applications/Battleship", diff --git a/Applications/.DS_Store b/Applications/.DS_Store index 4bb0935629d59f3cdc30a2c39efcdaca50686c8c..744927d6b0a6bb5221992153b314377f18f662d2 100644 GIT binary patch delta 18 acmZqqz|!)8Wy8|#lW#frZ~n4fpaB40zzOF7 delta 26 icmZqqz|!)8Wy8|#>;}d<3WjFJlOH;GZ2q!cpaB4v&I>mH diff --git a/Applications/MineCodeIDE/MineCodeIDE.lua b/Applications/MineCodeIDE/MineCodeIDE.lua index 80c96129..c490948a 100755 --- a/Applications/MineCodeIDE/MineCodeIDE.lua +++ b/Applications/MineCodeIDE/MineCodeIDE.lua @@ -158,9 +158,9 @@ end local function moveCursor(symbolOffset, lineOffset) local newSymbol, newLine = cursor.position.symbol + symbolOffset, cursor.position.line + lineOffset - if newSymbol < 1 then + if symbolOffset < 0 and newSymbol < 1 then newLine, newSymbol = newLine - 1, math.huge - elseif newSymbol > unicode.len(mainWindow.codeView.lines[newLine] or "") + 1 then + elseif symbolOffset > 0 and newSymbol > unicode.len(mainWindow.codeView.lines[newLine] or "") + 1 then newLine, newSymbol = newLine + 1, 1 end