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

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

[nongnu] elpa/evil-matchit acc7efbd8d 034/244: minor bugs fixed v1.2.3


From: ELPA Syncer
Subject: [nongnu] elpa/evil-matchit acc7efbd8d 034/244: minor bugs fixed v1.2.3
Date: Thu, 6 Jan 2022 02:58:47 -0500 (EST)

branch: elpa/evil-matchit
commit acc7efbd8d5e4ab92b044d8638fa5cd8da80b79f
Author: Chen Bin <chenbin.sh@gmail.com>
Commit: Chen Bin <chenbin.sh@gmail.com>

    minor bugs fixed v1.2.3
    
    - use evil-jump-item for major-modes we don't support
    - select/delete tags works in any mode
    - remove the extra line-feed when delete tags
---
 README.org           |   2 +-
 evil-matchit-html.el |   1 +
 evil-matchit-pkg.el  |   2 +-
 evil-matchit.el      |  13 ++++++++-----
 pkg.sh               |   2 +-
 screencast.gif       | Bin 318348 -> 318348 bytes
 6 files changed, 12 insertions(+), 8 deletions(-)

diff --git a/README.org b/README.org
index ce593dae3c..bbd2047d12 100644
--- a/README.org
+++ b/README.org
@@ -1,4 +1,4 @@
-* evil-matchit (current version 1.2.2)
+* evil-matchit (current version 1.2.3)
 
 Vim [[http://www.vim.org/scripts/script.php?script_id=39][matchit.vim]] by 
Benji Fisher ported into Emacs.
 
diff --git a/evil-matchit-html.el b/evil-matchit-html.el
index c487065070..a46a942918 100644
--- a/evil-matchit-html.el
+++ b/evil-matchit-html.el
@@ -96,6 +96,7 @@
 
     (if (=  1 tag-type) (sgml-skip-tag-backward NUM))
     (if (=  0 tag-type) (sgml-skip-tag-forward NUM))
+    (point)
     )
   )
 
diff --git a/evil-matchit-pkg.el b/evil-matchit-pkg.el
index fcb225a24a..6e3fa62522 100644
--- a/evil-matchit-pkg.el
+++ b/evil-matchit-pkg.el
@@ -1,2 +1,2 @@
-(define-package "evil-matchit" "1.2.2"
+(define-package "evil-matchit" "1.2.3"
                 "Vim matchit ported into Emacs (requires EVIL)")
diff --git a/evil-matchit.el b/evil-matchit.el
index 5c29515b51..a75613a932 100644
--- a/evil-matchit.el
+++ b/evil-matchit.el
@@ -4,7 +4,7 @@
 
 ;; Author: Chen Bin <chenbin.sh@gmail.com>
 ;; URL: http://github.com/redguardtoo/evil-matchit
-;; Version: 1.2.2
+;; Version: 1.2.3
 ;; Keywords: matchit vim evil
 ;; Package-Requires: ((evil "1.0.7"))
 ;;
@@ -70,9 +70,12 @@
          plugin
          )
       )
-    (if (not jumped)
-        (evilmi-simple-jump nil NUM)
-        )
+
+    (when (not jumped)
+      (if FUNC (funcall FUNC (list (point))))
+      (evil-jump-item)
+      (setq where-to-jump-in-theory (point))
+      )
     where-to-jump-in-theory
     )
   )
@@ -155,7 +158,7 @@
   (let (where-to-jump-in-theory )
     (setq where-to-jump-in-theory (evilmi--operate-on-item NUM 
'evilmi--push-mark))
     (if where-to-jump-in-theory (goto-char where-to-jump-in-theory))
-    (kill-region (region-beginning) (region-end))
+    (kill-region (region-beginning) (1+ (region-end)))
     )
   ;; need some hook here
   )
diff --git a/pkg.sh b/pkg.sh
index ef7ec2414a..0074865039 100755
--- a/pkg.sh
+++ b/pkg.sh
@@ -1,5 +1,5 @@
 #!/bin/bash
-pkg=evil-matchit-1.2.2
+pkg=evil-matchit-1.2.3
 mkdir $pkg
 cp README.org $pkg
 cp *.el $pkg
diff --git a/screencast.gif b/screencast.gif
index be0908372c..40c744007c 100644
Binary files a/screencast.gif and b/screencast.gif differ



reply via email to

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