jisaacks / GitGutter

A Sublime Text 2/3 plugin to see git diff in gutter
MIT License
3.87k stars 224 forks source link

Append to same line #545

Closed duraki closed 4 years ago

duraki commented 5 years ago

Description

When pane/text window view is lacking horizontal space, the lines break, and GitGutter output to new line. See image below.

Screenshot 2019-03-24 at 22 30 53

Info

Problem: The commit info line is added in new line.
Solution: Either force through ruler settings ("line_annotation_ruler": 1), or append to line horizontally.

This may be related to #525 but I'm not sure, therefore this issue. If this is in fact a ST3/underlaying problem, let me know.

Any hint/hack as a temporary solution is appreciated. Maybe horizontal scrolling enabled?

Support Info

... none, not a bug

Steps to Reproduce Issue

... none, not a bug

Thanks for the plugin @jisaacks! I'm starting to promote it over here at duraki/sublime-packed.

deathaxe commented 5 years ago

The line annotations use Sublime Text's phantoms API. Phantoms are added by character position in the text buffer with the sublime.LAYOUT_INLINE flag being passed to Sublime Text. It is then up to Sublime Text to decide how to render the phantom.

It is a know issue of ST to include phantoms into word wrapping. Hence the "show_line_annotation": "auto", setting causes line annotations to be disabled automatically if word wrapping is detected.

duraki commented 5 years ago

Highly appreciate detailed response and follow-up issue, thank you. Following.

deathaxe commented 4 years ago

This issue is fixed for ST4 with via the new annotations API.