sublimehq / sublime_text

Issue tracker for Sublime Text
https://www.sublimetext.com
807 stars 39 forks source link

Phantoms cause vertical shifting in distraction free mode #2761

Closed deathaxe closed 4 years ago

deathaxe commented 5 years ago

Problem description

This is an addition for #2759.

As phantoms are handled as normal text they cause the normal content to shift vertically when being added or removed in destrunction free mode.

Animation

_GitGutter therefore disables line annotations if draw_centered is true._

... which is probably [useful / the best solution] in distraction free mode anyway.

But as the status bar is hidden users might want to see the line annotations or draw_centered might be used in a normal mode.

Preferred solution

If a phantom would support sublime.DRAW_AFTER_EOL it should not only be excluded from word wrapping, but also not cause the view content to vertically shift if the draw_centered setting is true.

deathaxe commented 4 years ago

The new annotations feature introduced by ST 4050 fixes this issue in a very elegant way.

I'd therefore tend to close this issue.