From aa3e73a616e837eeb6084ff0174952f541a25023 Mon Sep 17 00:00:00 2001 From: Igor Timofeev Date: Mon, 10 Sep 2018 20:03:37 +0300 Subject: [PATCH] Fixed missing \n while pasting from real buffer, added ctrl+x line deletion feature --- Applications/MineCodeIDE/Main.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Applications/MineCodeIDE/Main.lua b/Applications/MineCodeIDE/Main.lua index 527ee725..374836a8 100755 --- a/Applications/MineCodeIDE/Main.lua +++ b/Applications/MineCodeIDE/Main.lua @@ -1374,7 +1374,11 @@ codeView.eventHandler = function(mainContainer, object, e1, e2, e3, e4, e5) paste(clipboard) -- X elseif e4 == 45 then - cut() + if codeView.selections[1] then + cut() + else + deleteLine(cursorPositionLine) + end -- N elseif e4 == 49 then newFile()