Browse files

Simplify backspace bugfix

  • Loading branch information...
1 parent e59fa83 commit 2ff2be5d395dc8ba638a2cab7716788ce8ed6817 @mason-larobina mason-larobina committed Jul 1, 2010
Showing with 1 addition and 4 deletions.
  1. +1 −4 examples/data/plugins/keycmd.py
View
5 examples/data/plugins/keycmd.py
@@ -426,10 +426,7 @@ def keycmd_backspace(uzbl, *args):
'''Removes the character at the cursor position in the keycmd.'''
k = uzbl.keylet
- if not k.keycmd:
- return
-
- if k.cursor == 0:
+ if not k.keycmd or not k.cursor:
return
k.keycmd = k.keycmd[:k.cursor-1] + k.keycmd[k.cursor:]

0 comments on commit 2ff2be5

Please sign in to comment.