Refactoring.

Fix unnecessary type conversion.
Fix argument order in diff.
Update to latest go-runewidth.