[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/typst-ts-mode f643036cc2 239/246: fix: having point after
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/typst-ts-mode f643036cc2 239/246: fix: having point after last column did not count as item #33 |
Date: |
Fri, 14 Feb 2025 16:55:53 -0500 (EST) |
branch: elpa/typst-ts-mode
commit f643036cc2908295f2bce3223636110911c3c8c1
Author: Huan Thieu Nguyen <nguyenthieuhuan@gmail.com>
Commit: Huan Thieu Nguyen <nguyenthieuhuan@gmail.com>
fix: having point after last column did not count as item #33
+ b
+ a|< `typst-ts-mode-meta-up`
1. world
2. hello
---
typst-ts-editing.el | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/typst-ts-editing.el b/typst-ts-editing.el
index 6247d175b5..02dde90631 100644
--- a/typst-ts-editing.el
+++ b/typst-ts-editing.el
@@ -60,9 +60,13 @@ Return the heading node when yes otherwise nil."
(defun typst-ts-mode-item--at-point-p ()
"Return item node when point is on item.
Otherwise nil."
- (treesit-parent-until (treesit-node-at (point))
- (lambda (x) (string= (treesit-node-type x)
- "item"))))
+ (treesit-parent-until
+ (treesit-node-at
+ (if (and (eolp) (/= (current-column) 0))
+ (1- (point))
+ (point)))
+ (lambda (x) (string= (treesit-node-type x)
+ "item"))))
(defun typst-ts-mode-item--with-siblings ()
"Return (prev current next numbered-p) items.
- [nongnu] elpa/typst-ts-mode ed22e9ddc3 164/246: doc(README): update co-maintainer information, (continued)
- [nongnu] elpa/typst-ts-mode ed22e9ddc3 164/246: doc(README): update co-maintainer information, ELPA Syncer, 2025/02/14
- [nongnu] elpa/typst-ts-mode 2132974643 169/246: chore: remove unneeded functions, ELPA Syncer, 2025/02/14
- [nongnu] elpa/typst-ts-mode 6a1ff662e1 194/246: fix(editing): typst-ts-mode-return on item newline issue, ELPA Syncer, 2025/02/14
- [nongnu] elpa/typst-ts-mode 075b450e44 199/246: chore, ELPA Syncer, 2025/02/14
- [nongnu] elpa/typst-ts-mode a6e6940956 202/246: refactor: do not `kill-line` because it will be in kill-ring, ELPA Syncer, 2025/02/14
- [nongnu] elpa/typst-ts-mode 709e77733e 208/246: fix+chore: indentation rules for item, ELPA Syncer, 2025/02/14
- [nongnu] elpa/typst-ts-mode 97ccb33aeb 215/246: chore: prefix argument handling for `typst-ts-compile` command, ELPA Syncer, 2025/02/14
- [nongnu] elpa/typst-ts-mode 2c82246569 216/246: fix: `typst-ts-compile` preview doc by default, ELPA Syncer, 2025/02/14
- [nongnu] elpa/typst-ts-mode 13b9894a4f 217/246: feat: #16 swapping numbered items works now, ELPA Syncer, 2025/02/14
- [nongnu] elpa/typst-ts-mode 07cf3bcc89 229/246: Added function `typst-ts-preview`, ELPA Syncer, 2025/02/14
- [nongnu] elpa/typst-ts-mode f643036cc2 239/246: fix: having point after last column did not count as item #33,
ELPA Syncer <=
- [nongnu] elpa/typst-ts-mode 7c01c6821c 243/246: Merge pull request 'Add an option to customize the preview function.' (#36) from tkpapp/typst-ts-mode:tp/customize-preview-function into develop, ELPA Syncer, 2025/02/14
- [nongnu] elpa/typst-ts-mode 271cedb1de 066/246: feat: add customization option to enable raw block highlighting, ELPA Syncer, 2025/02/14
- [nongnu] elpa/typst-ts-mode fded764913 069/246: fix(els): remove language tag map duplication, ELPA Syncer, 2025/02/14
- [nongnu] elpa/typst-ts-mode d6cd6d7283 076/246: feat: Also auto insert numbered list., ELPA Syncer, 2025/02/14
- [nongnu] elpa/typst-ts-mode 49a3981040 083/246: fix: Only search for the current line., ELPA Syncer, 2025/02/14
- [nongnu] elpa/typst-ts-mode 0454e44977 087/246: feat: Autoincrement on enter and fix heading insertion., ELPA Syncer, 2025/02/14
- [nongnu] elpa/typst-ts-mode 078b2efbb9 089/246: fix: disable echoing indentation debug information, ELPA Syncer, 2025/02/14
- [nongnu] elpa/typst-ts-mode 3d373bba6f 095/246: fix: fix outline recognization error when section indent offset is not nil, ELPA Syncer, 2025/02/14
- [nongnu] elpa/typst-ts-mode 2d25a0ac3f 097/246: refactor: `typst-ts-mode-insert--item`, ELPA Syncer, 2025/02/14
- [nongnu] elpa/typst-ts-mode 893430dc14 100/246: merge `develop` branch, ELPA Syncer, 2025/02/14