[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/multiple-cursors 5cd6ddf 293/434: Merge pull request #125
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/multiple-cursors 5cd6ddf 293/434: Merge pull request #125 from kyanagi/fix-cycle-cursors-on-edge |
Date: |
Sat, 7 Aug 2021 09:20:45 -0400 (EDT) |
branch: elpa/multiple-cursors
commit 5cd6ddf788640cc073d8a32aef06a525b92d0cbd
Merge: 3cfae1d 38e590c
Author: Magnar Sveen <magnars@gmail.com>
Commit: Magnar Sveen <magnars@gmail.com>
Merge pull request #125 from kyanagi/fix-cycle-cursors-on-edge
Fix cycle-cursor behavior
---
features/multiple-cursors-core.feature | 14 ++++++++++++++
mc-cycle-cursors.el | 4 ++--
2 files changed, 16 insertions(+), 2 deletions(-)
diff --git a/features/multiple-cursors-core.feature
b/features/multiple-cursors-core.feature
index cd308cd..0a6e8b9 100644
--- a/features/multiple-cursors-core.feature
+++ b/features/multiple-cursors-core.feature
@@ -166,9 +166,23 @@ Feature: Multiple cursors core
And I press "C-v"
Then the cursor should be at point "8"
+ Scenario: Looping forwards around cursors including one at point-max
+ Given I have cursors at "_" in "1_34_67_"
+ And I press "C-f"
+ And I press "C-v"
+ And I press "C-v"
+ And I press "C-v"
+ Then the cursor should be at point "3"
+
Scenario: Looping backwards around cursors
Given I have cursors at "_" in "1_34567_9"
And I press "M-v"
And I press "M-v"
Then the cursor should be at point "2"
+ Scenario: Looping backwards around cursors including one at point-min
+ Given I have cursors at "_" in "_234_67_9"
+ And I press "M-v"
+ And I press "M-v"
+ And I press "M-v"
+ Then the cursor should be at point "1"
diff --git a/mc-cycle-cursors.el b/mc-cycle-cursors.el
index 4c93dc7..bb86aaa 100644
--- a/mc-cycle-cursors.el
+++ b/mc-cycle-cursors.el
@@ -32,7 +32,7 @@
(defun mc/next-fake-cursor-after-point ()
(let ((pos (point))
- (next-pos (point-max))
+ (next-pos (1+ (point-max)))
next)
(mc/for-each-fake-cursor
(let ((cursor-pos (overlay-get cursor 'point)))
@@ -44,7 +44,7 @@
(defun mc/prev-fake-cursor-before-point ()
(let ((pos (point))
- (prev-pos (point-min))
+ (prev-pos (1- (point-min)))
prev)
(mc/for-each-fake-cursor
(let ((cursor-pos (overlay-get cursor 'point)))
- [nongnu] elpa/multiple-cursors 7b13b03 433/434: Add homepage, (continued)
- [nongnu] elpa/multiple-cursors 7b13b03 433/434: Add homepage, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 84ab4ee 196/434: Fix mc/dump-list (take 2): it looses old setting, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 6e15923 229/434: Use uninterned symbols in macros to avoid surprising local vars, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors cb848b2 239/434: Add @smithzvk to contributors list, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 6745142 250/434: Move from Carton to Cask, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors bf01772 230/434: Use phi-search for C-s in mc-mode when available., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 186cb3b 255/434: Release 1.2.3, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors c94eca5 254/434: Fix broken let binding, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors d8c5227 268/434: Merge pull request #103 from mathrick/compat-24.2, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 239acbf 281/434: Skip folded lines with mc/edit-lines, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 5cd6ddf 293/434: Merge pull request #125 from kyanagi/fix-cycle-cursors-on-edge,
ELPA Syncer <=
- [nongnu] elpa/multiple-cursors d1ad51f 296/434: Gitignore *.elc, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors a3e6ec7 297/434: Merge pull request #135 from jistr/gitignore_elc, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors fc39dab 299/434: Adds jedi-mode to list of unsupported minor modes, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors da2a9ab 298/434: Add mc/mark-all-in-region-regexp, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 7ddda85 312/434: Added vertical align commands, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 912342e 315/434: Add missing ###autoload markers, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 66eefa2 317/434: Add cperl-electric-backspace to default run-for-all list, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors dc1bfbf 325/434: Add cua-delete-region to default run-for-all, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 89e360e 333/434: Merge pull request #193 from dovej/master, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 4969d38 331/434: Move mc/list-file to the user-emacs-directory, ELPA Syncer, 2021/08/07