Permalink
Browse files

v0.1.5 issue #15

  • Loading branch information...
1 parent 63b8e47 commit 6188c97056b4ee5543f42ada8a36c3a6ce296e7d @rmaksim committed Oct 20, 2012
Showing with 7 additions and 2 deletions.
  1. +2 −0 README.md
  2. +5 −2 inc_dec_value.py
View
@@ -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
@@ -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

0 comments on commit 6188c97

Please sign in to comment.