[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/evil-matchit d005e0465e 223/244: Merge pull request #130 f
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/evil-matchit d005e0465e 223/244: Merge pull request #130 from nbfalcon/bugfix/evilmi-sdk-simple-jump-whitespace |
Date: |
Thu, 6 Jan 2022 02:59:03 -0500 (EST) |
branch: elpa/evil-matchit
commit d005e0465eca26af8a97cef925b2e5760b1e282c
Merge: 6254f7c812 2df3a62a8b
Author: Chen Bin <chenbin.sh@gmail.com>
Commit: GitHub <noreply@github.com>
Merge pull request #130 from
nbfalcon/bugfix/evilmi-sdk-simple-jump-whitespace
`evilmi-sdk-simple-jump': skip whitespace
---
evil-matchit-sdk.el | 1 +
tests/evil-matchit-tests.el | 12 ++++++++++++
2 files changed, 13 insertions(+)
diff --git a/evil-matchit-sdk.el b/evil-matchit-sdk.el
index 3c0cbbd09a..30fa1ea38e 100644
--- a/evil-matchit-sdk.el
+++ b/evil-matchit-sdk.el
@@ -153,6 +153,7 @@ If IS-FORWARD is t, jump forward; or else jump backward."
(defun evilmi-sdk-simple-jump ()
"Alternative for `evil-jump-item'."
(if evilmi-debug (message "evilmi-sdk-simple-jump called (point)=%d"
(point)))
+ (skip-syntax-forward " ")
(let* ((tmp (evilmi-sdk-jump-forward-p))
(jump-forward (car tmp))
;; if ff is not nil, it's jump between quotes
diff --git a/tests/evil-matchit-tests.el b/tests/evil-matchit-tests.el
index e4326bb9de..200113982e 100644
--- a/tests/evil-matchit-tests.el
+++ b/tests/evil-matchit-tests.el
@@ -471,5 +471,17 @@
(should (eq major-mode 'octave-mode))))
+(ert-deftest evilmi-test-simplejump-space ()
+ "`evilmi-sdk-simple-jump' should skip spaces."
+ (with-temp-buffer
+ (insert " {
+ }")
+ (goto-char (point-min))
+ (evilmi-sdk-simple-jump)
+ (should (= (char-after) ?}))
+ (goto-line 2)
+ (evilmi-sdk-simple-jump)
+ (should (= (char-after) ?{))))
+
(ert-run-tests-batch-and-exit)
;;; evil-matchit-tests.el ends here
- [nongnu] elpa/evil-matchit 0be04f960f 049/244: use text objects v1.3.2, (continued)
- [nongnu] elpa/evil-matchit 0be04f960f 049/244: use text objects v1.3.2, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit 62cef4f91a 077/244: replace evil-jump-items v2.0, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit 6390e9e06c 216/244: Silence byte-compiler, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit ae8fddea39 207/244: clean code, tdd for markdown, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit 0fd65c463b 226/244: clean code&doc, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit ceec6a63b0 236/244: better algorithm to match bracket/brace in javascript, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit 8c4f516265 238/244: Support matlab-mode, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit 82c80786e5 240/244: jump between merge conflict markers, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit 5c43939d01 212/244: Merge pull request #126 from neojski/more-ocaml-tests, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit cdb9b90381 229/244: extra json support, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit d005e0465e 223/244: Merge pull request #130 from nbfalcon/bugfix/evilmi-sdk-simple-jump-whitespace,
ELPA Syncer <=
- [nongnu] elpa/evil-matchit ce90eae4bd 243/244: typo, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit a0c5bd1fe8 230/244: support quote and export section in org file, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit 9cdaddd55d 228/244: Merge pull request #132 from aaronjensen/require-evil-macros, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit 8b71b42603 041/244: better support for sh and c/c++ v1.2.8, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit 4846518b59 109/244: support rjsx-mode, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit 0b0e6d61a6 119/244: clean code, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit 8a10046f25 145/244: fix python issue, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit 0d62d497d1 143/244: Fix typo, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit 4435f3ada5 128/244: evil-matchit-org: add :results: :end: drawer, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-matchit a91ea21c4a 141/244: Fix typo in readme, ELPA Syncer, 2022/01/06