diff options
author | Mason Larobina <mason.larobina@gmail.com> | 2010-07-01 20:10:46 +0800 |
---|---|---|
committer | Mason Larobina <mason.larobina@gmail.com> | 2010-07-01 20:10:46 +0800 |
commit | e59fa83900bb9b9ee74d80445e73ed01f4ad33bb (patch) | |
tree | 784b2f33da57a8bcad0b833d02e05497addf0983 /examples/data/plugins/keycmd.py | |
parent | f25a70afd86dbf3c8c60a61267c719414bb31867 (diff) | |
parent | 0ba5e2ed5678a5ff95fe3146fbbe7b8edd1b7c7b (diff) |
Merge remote branch 'pawelz/keycmd-bs-bug' into experimental
Diffstat (limited to 'examples/data/plugins/keycmd.py')
-rw-r--r-- | examples/data/plugins/keycmd.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/data/plugins/keycmd.py b/examples/data/plugins/keycmd.py index b600afe..503b539 100644 --- a/examples/data/plugins/keycmd.py +++ b/examples/data/plugins/keycmd.py @@ -429,6 +429,9 @@ def keycmd_backspace(uzbl, *args): if not k.keycmd: return + if k.cursor == 0: + return + k.keycmd = k.keycmd[:k.cursor-1] + k.keycmd[k.cursor:] k.cursor -= 1 update_event(uzbl, k, False) |