emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/evil-numbers a75c4b0a24 071/145: Cleanup: replace tabs wit


From: ELPA Syncer
Subject: [nongnu] elpa/evil-numbers a75c4b0a24 071/145: Cleanup: replace tabs with spaces
Date: Thu, 6 Jan 2022 03:00:19 -0500 (EST)

branch: elpa/evil-numbers
commit a75c4b0a24b57079bf711a36038a199d6c6ebf83
Author: Campbell Barton <ideasman42@gmail.com>
Commit: Campbell Barton <ideasman42@gmail.com>

    Cleanup: replace tabs with spaces
    
    Tabs were used inconsistently in a few places.
---
 evil-numbers.el | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/evil-numbers.el b/evil-numbers.el
index 1bdec75dee..c6e984cc09 100644
--- a/evil-numbers.el
+++ b/evil-numbers.el
@@ -283,14 +283,14 @@ decimal: [0-9]+, e.g. 42 or 23"
    ;; Search for number in rest of line match 0 of specifier or digit,
    ;; being in a literal and after specifier is handled above.
    (and
-         (re-search-forward "[[:digit:]⁰¹²³⁴⁵⁶⁷⁸⁹₀₁₂₃₄₅₆₇₈₉]" (point-at-eol) t)
-         (or
-          (not (memq (char-after) '(?b ?B ?o ?O ?x ?X)))
-          (/= (char-before) ?0)
-          (and (> (point) 2)                           ; Should also take bofp 
into consideration.
-                     (not (looking-back "\\W0" 2)))
-          ;; Skip format specifiers and interpret as boolean.
-          (<= 0 (skip-chars-forward "bBoOxX"))))))
+    (re-search-forward "[[:digit:]⁰¹²³⁴⁵⁶⁷⁸⁹₀₁₂₃₄₅₆₇₈₉]" (point-at-eol) t)
+    (or
+     (not (memq (char-after) '(?b ?B ?o ?O ?x ?X)))
+     (/= (char-before) ?0)
+     (and (> (point) 2) ;; Should also take bofp into consideration.
+          (not (looking-back "\\W0" 2)))
+     ;; Skip format specifiers and interpret as boolean.
+     (<= 0 (skip-chars-forward "bBoOxX"))))))
 
 (defun evil-numbers/search-and-replace (look-back skip-back search-forward inc 
base)
   "Perform the increment/decrement on the current line.
@@ -304,8 +304,8 @@ and return non-nil."
     (replace-match (evil-numbers/format (+ inc (string-to-number (match-string 
1) base))
                                         (if evil-numbers/padDefault (length 
(match-string 1)) 1)
                                         base))
-         ;; Moves point one position back to conform with VIM.
-         (forward-char -1)
+    ;; Moves point one position back to conform with VIM.
+    (forward-char -1)
     t))
 
 (defun evil-numbers/format (num width base)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]