Hi there, Currently, on Shift+Insert selection gets inserted at the end of the prompt text and the cursor's shifted right by #selection characters. Apparently, this results in wrong behavior when the cursor is in the middle of entered text.
The fix is trivial yet I'm not quite sure the patch is "ready for inclusion" so I'll just post it here for now. ---immerrr And here's the patch: From 05c5fbbf04cd6ec701b0caee4d125e98de473a94 Mon Sep 17 00:00:00 2001 From: immerrr <imme...@gmail.com> Date: Sun, 29 Aug 2010 00:21:27 +0400 Subject: [PATCH] awful.prompt: insert selection at cursor position Signed-off-by: immerrr <imme...@gmail.com> --- lib/awful/prompt.lua.in | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lib/awful/prompt.lua.in b/lib/awful/prompt.lua.in index f97665f..2275e6d 100644 --- a/lib/awful/prompt.lua.in +++ b/lib/awful/prompt.lua.in @@ -286,7 +286,7 @@ function run(args, textbox, exe_callback, completion_callback, history_path, his if n then selection = selection:sub(1, n - 1) end - command = command .. selection + command = command:sub(1, cur_pos - 1) .. selection .. command:sub(cur_pos) cur_pos = cur_pos + #selection end elseif key == "Home" then -- 1.7.1 -- To unsubscribe, send mail to awesome-unsubscr...@naquadah.org.