diff options
| author | Craig Jennings <c@cjennings.net> | 2025-10-26 00:54:03 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2025-10-26 00:54:03 -0500 |
| commit | ac89877d6a813c58a074edb082443c51c7877c8b (patch) | |
| tree | 703f1e006ec51a8ff62c81bc4a9f70cbbdf8e2ac /modules | |
| parent | 6e34dc2da0de3c3bc808963e31816e24e6a53b17 (diff) | |
test:custom-line-paragraph: add tests and fix region deactivation
- Add 11 new tests for cj/join-line-or-region covering boundary cases, Unicode, stress testing, and undo behavior
- Fix region deactivation in cj/join-line-or-region function
- All 62 tests now passing (41 join-line-or-region + 21 join-paragraph)
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/custom-line-paragraph.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/custom-line-paragraph.el b/modules/custom-line-paragraph.el index a23199e7..811f2a4b 100644 --- a/modules/custom-line-paragraph.el +++ b/modules/custom-line-paragraph.el @@ -28,7 +28,8 @@ (while (< (point) end) (join-line 1)) (goto-char end) - (newline)) + (newline) + (deactivate-mark)) ;; No region - only join if there's a previous line (when (> (line-number-at-pos) 1) (join-line)) |
