Created
July 12, 2011 12:05
-
-
Save anonymous/1077846 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 37070795da2f653f3d012b10cce4d4b97a36a82d Mon Sep 17 00:00:00 2001 | |
From: Andrea Piccinelli <frasten@gmail.com> | |
Date: Tue, 12 Jul 2011 14:02:38 +0200 | |
Subject: [PATCH] Fixes cinsertText(). | |
Signed-off-by: Andrea Piccinelli <frasten@gmail.com> | |
--- | |
src/mudlet-lua/lua/GUIUtils.lua | 3 +++ | |
1 files changed, 3 insertions(+), 0 deletions(-) | |
diff --git a/src/mudlet-lua/lua/GUIUtils.lua b/src/mudlet-lua/lua/GUIUtils.lua | |
index aee1fa6..73ca5d9 100644 | |
--- a/src/mudlet-lua/lua/GUIUtils.lua | |
+++ b/src/mudlet-lua/lua/GUIUtils.lua | |
@@ -882,6 +882,9 @@ if rex then | |
else | |
if func == 'echo' or func == 'insertText' then | |
if win then out(win, v) else out(v) end | |
+ if func == 'insertText' then | |
+ moveCursor(window or "main", getColumnNumber() + string.len(v), getLineNumber()) | |
+ end | |
else | |
if win then setUnderline(win, true) else setUnderline(true) end | |
if win then out(win, v, cmd, hint, true) else out(v, cmd, hint, true) end | |
-- | |
1.7.4.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment