Skip to content

Commit 73f58b0

Browse files
committed
Fixes #265 - use ClosedOpen decoration behavior
1 parent 8b71c77 commit 73f58b0

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).
66

7+
## [Unreleased]
8+
### Fixed
9+
- Fixes [#265](https://github.com/eamodio/vscode-gitlens/issues/265) - Delete line pushes screen to the right (even if word wrap is on)
10+
711
## [7.5.8] - 2018-01-29
812
### Fixed
913
- Fixes regression working with submodules

src/annotations/annotationController.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export enum AnnotationClearReason {
2626
export const Decorations = {
2727
blameAnnotation: window.createTextEditorDecorationType({
2828
isWholeLine: true,
29-
rangeBehavior: DecorationRangeBehavior.ClosedClosed,
29+
rangeBehavior: DecorationRangeBehavior.ClosedOpen,
3030
textDecoration: 'none'
3131
} as DecorationRenderOptions),
3232
blameHighlight: undefined as TextEditorDecorationType | undefined,

src/currentLineController.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const annotationDecoration: TextEditorDecorationType = window.createTextEditorDe
1515
margin: '0 0 0 3em',
1616
textDecoration: 'none'
1717
},
18-
rangeBehavior: DecorationRangeBehavior.ClosedClosed
18+
rangeBehavior: DecorationRangeBehavior.ClosedOpen
1919
} as DecorationRenderOptions);
2020

2121
class AnnotationState {

0 commit comments

Comments
 (0)