Fixed issue #2152: Log window show whole commit in "View patch"

Signed-off-by: Sup Yut Sum <ch3cooli@gmail.com>