Fix character input in edit_last()

- display only visible part of logline