improve line history functionality
correct usage of wcwidth()