[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/typescript-mode e02a734151 058/222: Improve test-coverage.
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/typescript-mode e02a734151 058/222: Improve test-coverage. |
Date: |
Sun, 6 Feb 2022 16:59:14 -0500 (EST) |
branch: elpa/typescript-mode
commit e02a73415108e5d368aa491982a01c1c6ba9b3f1
Author: Jostein Kjønigsen <jostein@kjonigsen.net>
Commit: Jostein Kjønigsen <jostein@kjonigsen.net>
Improve test-coverage.
---
typescript-mode-tests.el | 9 +++++++++
typescript-mode.el | 2 +-
2 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/typescript-mode-tests.el b/typescript-mode-tests.el
index 6e135f8090..c7fa26fceb 100644
--- a/typescript-mode-tests.el
+++ b/typescript-mode-tests.el
@@ -106,6 +106,15 @@ a severity set to WARNING, no rule name."
(insert "大塚愛")
(should (equal 3 (typescript-current-column)))))
+(ert-deftest correctly-accounts-wide-chars-as-1-char-without-sideeffects ()
+ "Otsuka Ai and other multi-char users should be a happy to write typescript."
+
+ (with-temp-buffer
+ (insert "大塚愛")
+ (let ((pos1 (typescript-current-column))
+ (pos2 (typescript-current-column)))
+ (should (equal pos1 pos2)))))
+
(provide 'typescript-mode-tests)
;;; typescript-mode-tests.el ends here
diff --git a/typescript-mode.el b/typescript-mode.el
index d6988ff87a..07466125db 100644
--- a/typescript-mode.el
+++ b/typescript-mode.el
@@ -1799,7 +1799,7 @@ nil."
"Unicode aware version of `CURRENT-COLUMN' which correctly accounts for wide
characters."
(save-excursion
- (let* ((end (point)))
+ (let ((end (point)))
(move-beginning-of-line nil)
(- end (point)))))
- [nongnu] elpa/typescript-mode 62e0366b46 181/222: Remove debugging code, (continued)
- [nongnu] elpa/typescript-mode 62e0366b46 181/222: Remove debugging code, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode a504b6f571 182/222: Merge pull request #1 from jkdufair/jkdufair-remove-debugging-code, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode f36fddeb54 186/222: Merge pull request #136 from phst/dup, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 178ceca2d4 188/222: Add option for list items indenting, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 2b1f04a166 191/222: Use ‘(should-not …)’ instead of ‘(should (not …))’., ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode daded219e6 199/222: Create initial GitHub actions build-definition, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode ab9c2e4fd0 209/222: Merge pull request #153 from emacs-typescript/feature/build-fix, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 67fd5fe4f2 200/222: Delete .travis.yml, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 1043025d42 204/222: Merge pull request #143 from jcs-PR/badge, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 3abc9dc6da 006/222: missed table, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode e02a734151 058/222: Improve test-coverage.,
ELPA Syncer <=
- [nongnu] elpa/typescript-mode a922c27e95 111/222: Merge pull request #76 from ananthakumaran/fix/drop-typescript-parent-mode, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 5c9e46b2a1 128/222: Add file for jsdoc tests, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 1da0c0e8b3 084/222: Try fix CI-build., ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 255f670a40 130/222: Merge pull request #92 from dakra/autoload-indent-level, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 32b8e1b6d0 134/222: Merge pull request #94 from jack-williams/add-bigint, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 6ae2c7ab9e 135/222: Highlight multiple implements types (#96), ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 761f3aec6e 161/222: Fix issues reported by package-lint, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode e82a4d2527 170/222: Add a new indentation test case that triggers an infinite loop., ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 54f14c4827 202/222: Update README.md, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode b369d7d251 206/222: Merge pull request #147 from ltrel/typo-fixes, ELPA Syncer, 2022/02/06