A3: keep gutter change markers on their line when text is inserted at its start
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
983319d8a3
commit
ce681871ad
2 changed files with 8 additions and 0 deletions
|
|
@ -108,6 +108,12 @@ class GitMarker extends GutterMarker {
|
|||
super();
|
||||
}
|
||||
|
||||
/** Text inserted at the line's start pushes the marker down with the line. */
|
||||
override startSide = 1;
|
||||
|
||||
/** Same side as the start, so the empty range survives mapping. */
|
||||
override endSide = 1;
|
||||
|
||||
override eq(other: GutterMarker): boolean {
|
||||
return other instanceof GitMarker && other.kind === this.kind;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue