Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
From 37070795da2f653f3d012b10cce4d4b97a36a82d Mon Sep 17 00:00:00 2001
From: Andrea Piccinelli <>
Date: Tue, 12 Jul 2011 14:02:38 +0200
Subject: [PATCH] Fixes cinsertText().
Signed-off-by: Andrea Piccinelli <>
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
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
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.