[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/crux 3998b753d0: Revert "Fixed extra line issue when dupli
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/crux 3998b753d0: Revert "Fixed extra line issue when duplicating" |
Date: |
Fri, 13 Oct 2023 04:00:15 -0400 (EDT) |
branch: elpa/crux
commit 3998b753d0eb4fc5a64ed9c9f05a1427ff4be22d
Author: Laam Pui <lpwowo@gmail.com>
Commit: Bozhidar Batsov <bozhidar@batsov.dev>
Revert "Fixed extra line issue when duplicating"
This reverts commit c3b61380caa115e1065cebbf5450f52459988f90.
---
crux.el | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/crux.el b/crux.el
index bc5c741a6e..d501e4d5a1 100644
--- a/crux.el
+++ b/crux.el
@@ -385,8 +385,7 @@ there's a region, all lines that region covers will be
duplicated."
(region (buffer-substring-no-properties beg end)))
(dotimes (_i arg)
(goto-char end)
- (unless (use-region-p)
- (newline))
+ (newline)
(insert region)
(setq end (point)))
(goto-char (+ origin (* (length region) arg) arg))))
@@ -404,8 +403,7 @@ there's a region, all lines that region covers will be
duplicated."
(setq end (line-end-position))
(dotimes (_ arg)
(goto-char end)
- (unless (use-region-p)
- (newline))
+ (newline)
(insert region)
(setq end (point)))
(goto-char (+ origin (* (length region) arg) arg))))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [nongnu] elpa/crux 3998b753d0: Revert "Fixed extra line issue when duplicating",
ELPA Syncer <=