[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/boxy 791d0f0cde 13/44: Using string-width instead of le
From: |
ELPA Syncer |
Subject: |
[elpa] externals/boxy 791d0f0cde 13/44: Using string-width instead of length |
Date: |
Sun, 5 May 2024 22:50:34 -0400 (EDT) |
branch: externals/boxy
commit 791d0f0cde67998efcca1fa642b0f04446dc7e84
Author: Amy Grinn <grinn.amy@gmail.com>
Commit: Amy Grinn <grinn.amy@gmail.com>
Using string-width instead of length
---
boxy.el | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/boxy.el b/boxy.el
index 832302961a..62ccfe5eb6 100644
--- a/boxy.el
+++ b/boxy.el
@@ -915,7 +915,7 @@ Uses `boxy--offset' to determine row and column offsets."
(let ((remaining-chars (- (save-excursion
(end-of-line)
(current-column))
(current-column))))
- (delete-char (min (length str)
remaining-chars))))))
+ (delete-char (min (string-width str)
remaining-chars))))))
(draw (cons top left)
(concat (cond ((and double dashed) "┏")
(double "╔")
@@ -983,7 +983,7 @@ Uses `boxy--offset' to determine row and column offsets."
(* 2 padding)))
(width (+ base-width
(if (slot-boundp box :name)
- (with-slots (name) box (length name))
+ (with-slots (name) box (string-width name))
0)))
(children (boxy--get-children box)))
(setq stored-width
@@ -1014,7 +1014,7 @@ Uses `boxy--offset' to determine row and column offsets."
(mapcar #'boxy--get-width
row)
(* -1 margin)))
rows))))
- (if (> width (+ (* 2 padding) children-width))
+ (if (> width (+ 1 (* 2 padding) children-width))
width
(+ base-width children-width)))))))))
- [elpa] externals/boxy de6406361c 16/44: Bump version, (continued)
- [elpa] externals/boxy de6406361c 16/44: Bump version, ELPA Syncer, 2024/05/05
- [elpa] externals/boxy 5bef288d19 19/44: Add support for chinese characters in tooltip, ELPA Syncer, 2024/05/05
- [elpa] externals/boxy 892cec5a2c 21/44: Typo in boxy--add-matching, ELPA Syncer, 2024/05/05
- [elpa] externals/boxy 6cdb5e992d 26/44: Bump version, ELPA Syncer, 2024/05/05
- [elpa] externals/boxy af4e74a80a 33/44: Revert "Using org reveal after navigating to a box", ELPA Syncer, 2024/05/05
- [elpa] externals/boxy 63be53f8c3 36/44: Updated version, ELPA Syncer, 2024/05/05
- [elpa] externals/boxy 61938c681f 38/44: Ensure boxy-mode is launched with a fixed-pitch font, ELPA Syncer, 2024/05/05
- [elpa] externals/boxy 90034e1cc3 42/44: Updated package location, ELPA Syncer, 2024/05/05
- [elpa] externals/boxy 0bc52cec79 04/44: Added patch from Stefan Monnier, ELPA Syncer, 2024/05/05
- [elpa] externals/boxy b09ac82399 12/44: Test chinese characters, ELPA Syncer, 2024/05/05
- [elpa] externals/boxy 791d0f0cde 13/44: Using string-width instead of length,
ELPA Syncer <=
- [elpa] externals/boxy f6aa91e014 07/44: Merge branch 'next' into 'main', ELPA Syncer, 2024/05/05
- [elpa] externals/boxy 52927fd5b6 08/44: Use relative paths in elpa ignore, ELPA Syncer, 2024/05/05
- [elpa] externals/boxy bd8097e1b7 09/44: Merge branch 'next' into 'main', ELPA Syncer, 2024/05/05
- [elpa] externals/boxy c8c22248db 15/44: Updated docstring, ELPA Syncer, 2024/05/05
- [elpa] externals/boxy 1b5ed6c758 17/44: Merge branch 'next' into 'main', ELPA Syncer, 2024/05/05
- [elpa] externals/boxy 6f4b8bf597 20/44: Go to first marker first, then cycle, ELPA Syncer, 2024/05/05
- [elpa] externals/boxy 0509c51105 29/44: Collapse grandchildren when grandparent collapsed., ELPA Syncer, 2024/05/05
- [elpa] externals/boxy 10dfc2569d 31/44: Merge branch 'DamienCassou-main-patch-54220' into 'main', ELPA Syncer, 2024/05/05
- [elpa] externals/boxy a59a30e0ed 40/44: Update version, ELPA Syncer, 2024/05/05
- [elpa] externals/boxy 064d4c506c 43/44: Updated documentation, ELPA Syncer, 2024/05/05