TISTUD-5285 Unable to view file in Resource History for git from editor
  - Fix so we grab proper variable when editor text selection is the current selection.