Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

v0.1.5 issue #15

  • Loading branch information...
commit 6188c97056b4ee5543f42ada8a36c3a6ce296e7d 1 parent 63b8e47
@rmaksim authored
Showing with 7 additions and 2 deletions.
  1. +2 −0  README.md
  2. +5 −2 inc_dec_value.py
View
2  README.md
@@ -1,5 +1,7 @@
#Inc-Dec-Value
+**v0.1.5** - #15 Don't place action in undo history when nothing happens
+**v0.1.4** - #14 Saving the position of the cursors/selections on the change
**v0.1.3** - added support for the mouse wheel
---
View
7 inc_dec_value.py
@@ -1,5 +1,5 @@
'''
-Inc-Dec-Value v0.1.3
+Inc-Dec-Value v0.1.5
Increase / Decrease of
- numbers (integer and fractional),
@@ -273,7 +273,10 @@ def apply_string(self):
"dec_max": string.lower,
}.get(self.action, None)
- fn and self.replace(fn(word))
+ if fn:
+ new_word = fn(word)
+ if word != new_word:
+ self.replace(new_word)
return True
Please sign in to comment.
Something went wrong with that request. Please try again.