From 02c6b1b6c71b076667aa30ef0a0f2b632cca2ac2 Mon Sep 17 00:00:00 2001 From: Eduardo Bart Date: Wed, 3 Jun 2015 10:59:28 -0300 Subject: [PATCH] Missing changes for multiline text --- modules/game_console/console.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/game_console/console.lua b/modules/game_console/console.lua index ac9ffd03..ebb8ed1b 100644 --- a/modules/game_console/console.lua +++ b/modules/game_console/console.lua @@ -113,7 +113,10 @@ function init() local tab = consoleTabBar:getCurrentTab() if not tab then return false end - g_window.setClipboardText(selectioText) + local selection = tab.tabPanel:getChildById('consoleBuffer').selectionText + if not selection then return false end + + g_window.setClipboardText(selection) return true end