code: Fix a parse error of Diff Rendering.

A parse erorr has occured if hunk has only one line. This fixes #378.