m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-16 07:13:48 -05:00

Minor refactorings

This commit is contained in:
Junegunn Choi
2017-08-26 03:24:42 +09:00
parent 329de8f416
commit af809c9661
4 changed files with 4 additions and 4 deletions

View File

@@ -160,7 +160,7 @@ func (chars *Chars) CopyRunes(dest []rune) {
copy(dest, runes)
return
}
for idx, b := range chars.slice {
for idx, b := range chars.slice[:len(dest)] {
dest[idx] = rune(b)
}
return