Commit f0506c3
readline: move charLengthLeft() and charLengthAt()
This moves the charLengthLeft() and charLengthAt() into the internal
readline file. This allows sharing the functions internally with
other code.
PR-URL: #31112
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>1 parent 7ba21d0 commit f0506c3Copy full SHA for f0506c3
File tree
Expand file treeCollapse file tree
2 files changed
+27
-19
lines changedOpen diff view settings
Filter options
- lib
- internal/readline
Expand file treeCollapse file tree
2 files changed
+27
-19
lines changedOpen diff view settings
Collapse file
lib/internal/readline/utils.js
Copy file name to clipboardExpand all lines: lib/internal/readline/utils.js+25Lines changed: 25 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
36 | 36 | |
37 | 37 | |
38 | 38 | |
| 39 | + |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | + |
| 44 | + |
| 45 | + |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | + |
| 52 | + |
| 53 | + |
| 54 | + |
| 55 | + |
| 56 | + |
| 57 | + |
| 58 | + |
| 59 | + |
| 60 | + |
| 61 | + |
39 | 62 | |
40 | 63 | |
41 | 64 | |
| ||
452 | 475 | |
453 | 476 | |
454 | 477 | |
| 478 | + |
| 479 | + |
455 | 480 | |
456 | 481 | |
457 | 482 | |
|
Collapse file
+2-19Lines changed: 2 additions & 19 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
49 | 49 | |
50 | 50 | |
51 | 51 | |
| 52 | + |
| 53 | + |
52 | 54 | |
53 | 55 | |
54 | 56 | |
| ||
591 | 593 | |
592 | 594 | |
593 | 595 | |
594 | | - |
595 | | - |
596 | | - |
597 | | - |
598 | | - |
599 | | - |
600 | | - |
601 | | - |
602 | | - |
603 | | - |
604 | | - |
605 | | - |
606 | | - |
607 | | - |
608 | | - |
609 | | - |
610 | | - |
611 | | - |
612 | | - |
613 | 596 | |
614 | 597 | |
615 | 598 | |
|
0 commit comments