[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/evil-numbers 83e98f9fe2 096/145: Correct invalid limit arg
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/evil-numbers 83e98f9fe2 096/145: Correct invalid limit argument to `looking-back' |
Date: |
Thu, 6 Jan 2022 03:00:22 -0500 (EST) |
branch: elpa/evil-numbers
commit 83e98f9fe229efe2fd414270e84916bbea2aa8b5
Author: Campbell Barton <ideasman42@gmail.com>
Commit: Campbell Barton <ideasman42@gmail.com>
Correct invalid limit argument to `looking-back'
This argument is an absolute position,
not relative to the point.
Also apply limit to skip-chars-forward.
---
evil-numbers.el | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/evil-numbers.el b/evil-numbers.el
index ab7b7c9e40..97dd9d3399 100644
--- a/evil-numbers.el
+++ b/evil-numbers.el
@@ -348,10 +348,10 @@ note that searching still starts at POINT."
(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)))
+ ;; Should also take bofp into consideration.
+ (not (looking-back "\\W0" (max beg (- (point) 2))))
;; Skip format specifiers and interpret as boolean.
- (<= 0 (skip-chars-forward "bBoOxX"))))))
+ (<= 0 (skip-chars-forward "bBoOxX" end))))))
(defun evil-numbers--match-from-skip-chars (skip-chars dir do-check do-match)
"Match SKIP-CHARS in DIR (-1 or 1).
- [nongnu] elpa/evil-numbers e1b60f3b75 133/145: Fix #27 Number directly before the cursor manipulated in some cases, (continued)
- [nongnu] elpa/evil-numbers e1b60f3b75 133/145: Fix #27 Number directly before the cursor manipulated in some cases, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-numbers 3bd94723f8 134/145: Cleanup: indentation, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-numbers 0d66b63f42 116/145: CHANGELOG.org: update with recent fixes, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-numbers 1acf90638b 128/145: Bump to 0.6, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-numbers c39f8f1c19 122/145: Cleanup: auto-indent the changelog, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-numbers ef72a4fea1 135/145: Cleanup: correct doc-strings, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-numbers 70b986276a 117/145: Cleanup: declare nums as `(list)` for readability, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-numbers 623bcbd04f 130/145: README: add "similar packages" section, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-numbers 1bf577af5c 132/145: Fix #26: Optionally match characters directly before the cursor, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-numbers 43ae06047c 115/145: README.org: keypad can be used for other platforms too, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-numbers 83e98f9fe2 096/145: Correct invalid limit argument to `looking-back',
ELPA Syncer <=
- [nongnu] elpa/evil-numbers a6cf01fd90 090/145: Fix #21 increment w/ selection ignores items before the cursor, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-numbers 11fc45c760 086/145: Cleanup: move subscript encode/decode into utility functions, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-numbers bea0c102af 088/145: Cleanup: use term amount for both decimal/(hex/bin/octal) functions, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-numbers f33d0137ac 072/145: Cleanup: quiet package-lint warnings, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-numbers 48b528baec 131/145: Refactor: instead of passing an amount, pass in a function, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-numbers fd742943fd 127/145: README.org use definition lists for options, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-numbers cd23a7b458 136/145: README.org: update poor wording, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-numbers 9841266544 113/145: Cleanup: replace catch/throw with a 'found' variable, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-numbers 9cf802c29d 119/145: Fix #24 hexadecimal values case when incrementing/decrementing, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-numbers 6ea1c8c3a9 036/145: Use list for contributers., ELPA Syncer, 2022/01/06