sublimehq / sublime_merge

Issue tracker for Sublime Merge
https://www.sublimemerge.com
272 stars 14 forks source link

Diff Symbol Context disappear when increasing line before diff #123

Open TheClams opened 5 years ago

TheClams commented 5 years ago

Version info

Description

For each hunk, the closest symbol is displayed. But when you increase the number of unmodified line before diff, it disappear

Steps to reproduce

Steps to reproduce the behavior:

  1. Select a commit where a symbol context is displayed for the diff
  2. Move the top splitter bar up to show more unmodified lines
  3. The symbol is no longer present, even when you move back the splitter bar to its original position

Expected behavior

Symbol context should always stay visible.

Screenshots

Using the Sublime/Package repo: before after

TheClams commented 5 years ago

And I also the same behavior if there is multiple hunk and I stage one, then the symbol context disapear for all the other hunk

Ethan-VisualVocal commented 5 years ago

Came here to report this for build 1116. Can confirm this issue of ALL symbol context disappearing for a file, whether staged or not, still happens when:

Workarounds: Select a different commit, then re-select the original. However, it does not remember the visible-hunk-lines change, nor which hunk you'd scrolled to, so it's a pretty frustrating workaround.

Platform info: Sublime Merge Build 1116 macOS 10.14.4 git 2.18.0