Permalink
Browse files

accept negative number as step value

  • Loading branch information...
1 parent f12ca5a commit 4acdf48596d25d1f792ee104ad3f807a39846e82 @mhayashi1120 committed Oct 28, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 rect+.el
View
@@ -4,7 +4,7 @@
;; Keywords: rectangle edit
;; URL: http://github.com/mhayashi1120/Emacs-rectplus/raw/master/rect+.el
;; Emacs: GNU Emacs 21 or later
-;; Version 1.0.1
+;; Version 1.0.2
;; This program is free software; you can redistribute it and/or
;; modify it under the terms of the GNU General Public License as
@@ -244,7 +244,7 @@ See `read-from-minibuffer'."
(defun rectplus-read-number (prompt default)
(string-to-number (rectplus-read-from-minibuffer
- prompt "^[0-9]+$"
+ prompt "^[-+]?[0-9]+$"
(number-to-string default))))
(defun rectplus-non-rectangle-to-rectangle (strings &optional max)

0 comments on commit 4acdf48

Please sign in to comment.