awesome/lib/awful
Uli Schlachter 26d97d0273 awful.prompt: "Fix" for multi-byte characters
If you entered a multi-byte character into a prompt and then changed your mind
and used backspace to fix the character, only the last byte of the character was
removed. Because pango is intelligent, it noticed the broken utf8 and
complained.

So far nothing new. But since 711d78b50c the textbox will throw a lua error
when it gets an invalid text (= pango complains). Throwing an unprotected lua
error in this context causes the keygrabber to be killed which stops the prompt.

Fix this by removing bytes as long as there are bytes left that can be removed.

This is FS#801.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2010-08-26 21:07:20 +02:00
..
layout awful.layout: emit arrange signal 2009-11-06 12:39:48 +01:00
mouse awful.mouse: load finder 2009-09-11 13:43:02 +02:00
widget prompt: Only show error messages 2010-08-09 14:24:52 +02:00
autofocus.lua.in awful.autofocus: improve client focus with multiple screens 2010-01-10 10:31:17 +01:00
button.lua.in awful.{button,key}: enhance documentation 2009-08-28 15:26:41 +02:00
client.lua.in Check "focusable" in awful.client.focus.filter(c) 2010-08-12 13:22:44 +02:00
completion.lua.in awful.completion: use sort -u to sort (FS#621) 2009-09-22 17:15:49 +02:00
dbus.lua.in awful.dbus: enhance description 2009-08-28 15:33:18 +02:00
hooks.lua.in awful.hooks: deprecate in description 2009-08-28 15:34:03 +02:00
init.lua.in awful: add tooltip module 2009-09-09 20:27:47 +02:00
key.lua.in awful.{button,key}: enhance documentation 2009-08-28 15:26:41 +02:00
menu.lua.in awful.menu.clients: Raise the newly focused client 2010-05-03 11:03:47 +02:00
placement.lua.in awful.placement: Honor border width 2010-07-24 15:31:00 +02:00
prompt.lua.in awful.prompt: "Fix" for multi-byte characters 2010-08-26 21:07:20 +02:00
remote.lua.in awful.remote: enhance description 2009-08-28 15:36:34 +02:00
rules.lua.in Remove invalid variable usage 2010-06-14 20:04:33 +02:00
screen.lua.in awful.screen: fix padding 2009-10-09 20:05:42 +02:00
startup_notification.lua.in spawn: move sn hooks to signals 2009-08-17 17:47:55 +02:00
tag.lua.in Functionality for deleting a tag using awful.tag. 2010-08-02 22:06:17 +02:00
titlebar.lua.in awful.titlebar: set a default name if client's nil (FS#653) 2009-10-09 16:14:42 +02:00
tooltip.lua.in tooltip: force place() if tooltip is not visible 2009-12-03 14:22:21 +01:00
util.lua.in Fix awful.util.table.reverse 2009-11-17 10:25:21 +01:00
wibox.lua.in awful.wibox: update struts on align() 2010-03-23 11:06:37 +01:00