peterh / liner

Pure Go line editor with history, inspired by linenoise
MIT License
1.04k stars 132 forks source link

fix completer #61

Closed mattn closed 8 years ago

mattn commented 8 years ago

suffix of completion break utf-8 bytes when the line is ended with utf-8 multi-byte.

mattn commented 8 years ago

pos is index of list of runes. So can't assoc with index of bytes.

peterh commented 8 years ago

Sorry for the delay. I mistakenly thought your second comment was withdrawing your proposed patch.

Thanks for the fix. Pulled.