[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/crux c3b6138 107/112: Fixed extra line issue when duplicat
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/crux c3b6138 107/112: Fixed extra line issue when duplicating |
Date: |
Wed, 11 Aug 2021 09:58:03 -0400 (EDT) |
branch: elpa/crux
commit c3b61380caa115e1065cebbf5450f52459988f90
Author: Yevgnen Koh <wherejoystarts@gmail.com>
Commit: Bozhidar Batsov <bozhidar@batsov.dev>
Fixed extra line issue when duplicating
---
crux.el | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/crux.el b/crux.el
index d7654cf..a6ca1fa 100644
--- a/crux.el
+++ b/crux.el
@@ -384,7 +384,8 @@ 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)
- (newline)
+ (unless (use-region-p)
+ (newline))
(insert region)
(setq end (point)))
(goto-char (+ origin (* (length region) arg) arg))))
@@ -402,7 +403,8 @@ there's a region, all lines that region covers will be
duplicated."
(setq end (line-end-position))
(dotimes (_ arg)
(goto-char end)
- (newline)
+ (unless (use-region-p)
+ (newline))
(insert region)
(setq end (point)))
(goto-char (+ origin (* (length region) arg) arg))))
- [nongnu] elpa/crux 5ba2f3b 084/112: Add a changelog, (continued)
- [nongnu] elpa/crux 5ba2f3b 084/112: Add a changelog, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux c014640 086/112: Tweak some wording, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux dd3f0e5 089/112: Add function crux-kill-and-join-forward, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux 23ffa81 092/112: Touch up the previous commit, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux 519629b 094/112: Update the changelog, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux 273390e 101/112: Read file name insead of raw string, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux a471cbe 102/112: Add crux-recentf-find-directory, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux 6bfd212 112/112: Update my e-mail, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux ba4b05c 021/112: Support tcsh, fish and ksh for crux-find-shell-init-file, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux 785dfba 095/112: crux-smart-open-line-above: Use crux-move-to-mode-line-start, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux c3b6138 107/112: Fixed extra line issue when duplicating,
ELPA Syncer <=
- [nongnu] elpa/crux 6c02dab 071/112: Fold a few long lists, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux 9341c6b 072/112: Silence byte compiler, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux 5395c06 076/112: New function: crux-find-user-custom-file, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux 7569d26 085/112: Bump the copyright years, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux 139eb6f 096/112: Add crux-kill-buffer-truename, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux fb648f0 099/112: Add missing autoload, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux 95f5040 106/112: Update crux-transpose-window with other-window, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux 3445e7e 109/112: Release 0.4.0, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux 20c0784 104/112: Add support for org-mode links to crux-view-url, ELPA Syncer, 2021/08/11
- [nongnu] elpa/crux 4ce9c4b 070/112: Fix a couple of docstrings, ELPA Syncer, 2021/08/11