Skip to content

Commit

Permalink
Fix ~, version bump to 0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
GermainZ committed Feb 9, 2015
1 parent 1fe36fc commit 8cdead2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vimode.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

SCRIPT_NAME = "vimode"
SCRIPT_AUTHOR = "GermainZ <germanosz@gmail.com>"
SCRIPT_VERSION = "0.4"
SCRIPT_VERSION = "0.5"
SCRIPT_LICENSE = "GPL3"
SCRIPT_DESC = ("Add vi/vim-like modes and keybindings to WeeChat.")

Expand Down Expand Up @@ -689,6 +689,7 @@ def key_tilda(buf, input_line, cur, count):
`key_base()`.
"""
input_line = list(input_line)
count = max(1, count)
while count and cur < len(input_line):
input_line[cur] = input_line[cur].swapcase()
count -= 1
Expand Down

0 comments on commit 8cdead2

Please sign in to comment.