Browse Source

Fixes #265 - use ClosedOpen decoration behavior

main
Eric Amodio 6 years ago
parent
commit
73f58b0b54
3 changed files with 6 additions and 2 deletions
  1. +4
    -0
      CHANGELOG.md
  2. +1
    -1
      src/annotations/annotationController.ts
  3. +1
    -1
      src/currentLineController.ts

+ 4
- 0
CHANGELOG.md View File

@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).
## [Unreleased]
### Fixed
- Fixes [#265](https://github.com/eamodio/vscode-gitlens/issues/265) - Delete line pushes screen to the right (even if word wrap is on)
## [7.5.8] - 2018-01-29 ## [7.5.8] - 2018-01-29
### Fixed ### Fixed
- Fixes regression working with submodules - Fixes regression working with submodules

+ 1
- 1
src/annotations/annotationController.ts View File

@ -26,7 +26,7 @@ export enum AnnotationClearReason {
export const Decorations = { export const Decorations = {
blameAnnotation: window.createTextEditorDecorationType({ blameAnnotation: window.createTextEditorDecorationType({
isWholeLine: true, isWholeLine: true,
rangeBehavior: DecorationRangeBehavior.ClosedClosed,
rangeBehavior: DecorationRangeBehavior.ClosedOpen,
textDecoration: 'none' textDecoration: 'none'
} as DecorationRenderOptions), } as DecorationRenderOptions),
blameHighlight: undefined as TextEditorDecorationType | undefined, blameHighlight: undefined as TextEditorDecorationType | undefined,

+ 1
- 1
src/currentLineController.ts View File

@ -15,7 +15,7 @@ const annotationDecoration: TextEditorDecorationType = window.createTextEditorDe
margin: '0 0 0 3em', margin: '0 0 0 3em',
textDecoration: 'none' textDecoration: 'none'
}, },
rangeBehavior: DecorationRangeBehavior.ClosedClosed
rangeBehavior: DecorationRangeBehavior.ClosedOpen
} as DecorationRenderOptions); } as DecorationRenderOptions);
class AnnotationState { class AnnotationState {

Loading…
Cancel
Save