'main': Fix highlighting of comments followed by non-comments (on a subsequent line).

Merge remote-tracking branch 'upstream/pr/385'

* upstream/pr/385:
  'main': Add regression test for previous commit.
  'main': Fix bug: no start_pos=$end_pos in comment short path

Fixes #385.
This commit is contained in:
Daniel Shahaf
2016-11-02 15:54:56 +00:00
2 changed files with 40 additions and 0 deletions

View File

@@ -418,6 +418,7 @@ _zsh_highlight_highlighter_main_paint()
fi
_zsh_highlight_main_add_region_highlight $start_pos $end_pos $style
already_added=1
start_pos=$end_pos
continue
fi