Skip to content

[minor] display bug with comments, syntax highlighting and set to not "show all lines" #18

@ofarrill

Description

@ofarrill

(sorry wrong repo - but I can't move it, nor delete it...)

Hi, first of all thanks for the tremendous work on this nice git SCM tool!

While happily using SourceGit mainly on macOS to do SCM I found that when

  • there are multiple edits shown in the source diff window,
  • the source diff windows is not set to "show all lines",
  • syntax highlighting is enabled,
  • the upper edit contains a starting comment (i.e. /* for C++) and
  • the closing comment (i.e. */ for C++) is hidden between visible edits
    then syntax highlighting starts commenting, ignores the belonging but hidden closing comment and continues to commenting until another, unrelated, but in an edit visible closing comment is found.

Thanks and all the best!

Image

Metadata

Metadata

Assignees

Labels

wontfixThis will not be worked on

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions