From d30dca3233713494b08ed4bce744bd137f23f13f Mon Sep 17 00:00:00 2001 From: Kenny Shields Date: Tue, 2 Sep 2014 18:57:01 -0400 Subject: [PATCH] Fix #143 --- objects/textinput.lua | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/objects/textinput.lua b/objects/textinput.lua index 09bf8ca..75bf935 100644 --- a/objects/textinput.lua +++ b/objects/textinput.lua @@ -1940,7 +1940,14 @@ end --]]--------------------------------------------------------- function newobject:SelectAll() - self.alltextselected = true + if not self.multiline then + if self.lines[1] ~= "" then + self.alltextselected = true + end + else + self.alltextselected = true + end + return self end