-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Make registerMarker's cursor offset optional #3611
Copy link
Copy link
Closed
Labels
area/apigood first issuehelp wantedtype/enhancementFeatures or improvements to existing featuresFeatures or improvements to existing features
Description
We've been using markers more and more in xterm.js and found that every case so far looks like registerMarker(0)
We should make the argument optional and have it imply 0 (same line as the cursor).
Lines 860 to 866 in 6c18b7f
| /** | |
| * (EXPERIMENTAL) Adds a marker to the normal buffer and returns it. If the | |
| * alt buffer is active, undefined is returned. | |
| * @param cursorYOffset The y position offset of the marker from the cursor. | |
| * @returns The new marker or undefined. | |
| */ | |
| registerMarker(cursorYOffset: number): IMarker | undefined; |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area/apigood first issuehelp wantedtype/enhancementFeatures or improvements to existing featuresFeatures or improvements to existing features