[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/iedit 27de77eda5 133/301: add test to ensure padding of EO
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/iedit 27de77eda5 133/301: add test to ensure padding of EOL happens to make up rectangle |
Date: |
Mon, 10 Jan 2022 22:58:57 -0500 (EST) |
branch: elpa/iedit
commit 27de77eda5a251b1ba54fe0e5b8e3efccb2335cb
Author: Le Wang <le.wang@agworld.com.au>
Commit: Le Wang <le.wang@agworld.com.au>
add test to ensure padding of EOL happens to make up rectangle
---
iedit-tests.el | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/iedit-tests.el b/iedit-tests.el
index 4ffc303361..d0b3bd7119 100644
--- a/iedit-tests.el
+++ b/iedit-tests.el
@@ -475,6 +475,23 @@ arfoo
foo"))
(should (equal killed-rectangle '("foo" " fo" " b" " "))))))
+(ert-deftest iedit-kill-rectangle-fill-extra-spaces ()
+ "lines within rectangle shorter than rectangle right column
+ should have spaces filled in."
+ (with-iedit-test-fixture
+ "foo
+ foo
+ barfoo
+ foo"
+ (lambda ()
+ (iedit-mode)
+ (setq indent-tabs-mode nil)
+ (set-mark-command nil)
+ (goto-word "barfoo")
+ (call-interactively 'iedit-rectangle-mode)
+ (should (iedit-same-column))
+ (should (equal '(1 27) (marker-position-list iedit-rectangle))))))
+
(ert-deftest iedit-restrict-defun-test ()
(with-iedit-test-fixture
"a
- [nongnu] elpa/iedit 21a60f2ea3 113/301: Add toogle key option, (continued)
- [nongnu] elpa/iedit 21a60f2ea3 113/301: Add toogle key option, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit e4d67bdb06 120/301: Separate iedit-mode-from-isearch, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 466ab11996 119/301: Add APIs for adding occurrence overlay, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 3cf5e8f806 111/301: Minor update README.org to reflect modulized change, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit a089103fa0 110/301: Fix typoes, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 66ca4f9595 125/301: Merge pull request #21 from lewang/fix-overlay-at-eob, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 541eab7b6b 108/301: Add document for iedit-rectangle-mode, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 4b1416f83f 131/301: refactor out common test code in "test-util", ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit ceb729863b 153/301: Update iedit-lib.el, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit b3ebd84769 137/301: Merge pull request #29 from jorgenschaefer/elpa-package, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 27de77eda5 133/301: add test to ensure padding of EOL happens to make up rectangle,
ELPA Syncer <=
- [nongnu] elpa/iedit 7a35f3bd06 157/301: Add overlay priority option, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit c274e6423b 200/301: Quit iedit mode if the number of occurrence is zero, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 8c2316693a 198/301: Fix bug: C-u M-p does not work, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit c7abe595b4 159/301: Remove confusing messages "Locate the fist occurrence", ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 2fe78a5ec9 201/301: Remove two confusing options, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit f707cce0b8 193/301: Remove the key binding to M-[, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit f9f87a0dd9 212/301: Add key bindings for iedit-quit, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit b4c7e41049 209/301: More doc for iedit-switch-to-mc-mode, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 18b99c1fb4 169/301: Fix compile warning and test case, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit bd3fd44691 173/301: Added the default value for iedit-replace-occurrences, ELPA Syncer, 2022/01/10