branch: elpa/evil-numbers
commit 154703dca758ceb9e19d299eb099aad60fbc1c19
Author: Jan Path <[email protected]>
Commit: Jan Path <[email protected]>

    Make binary, octal and hexadecimal numbers honour padDefault
---
 evil-numbers.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/evil-numbers.el b/evil-numbers.el
index b91922e3af..3b799f36ef 100644
--- a/evil-numbers.el
+++ b/evil-numbers.el
@@ -283,7 +283,7 @@ decimal: [0-9]+, e.g. 42 or 23"
     (skip-chars-backward skip-back)
     (search-forward-regexp search-forward)
     (replace-match (evil-numbers/format (+ inc (string-to-number (match-string 
1) base))
-                                        (length (match-string 1))
+                                        (if evil-numbers/padDefault (length 
(match-string 1)) 1)
                                         base))
          ;; Moves point one position back to conform with Vim
          (forward-char -1)

Reply via email to