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

Fix bind spec parser

This commit is contained in:
Junegunn Choi
2022-12-23 15:37:39 +09:00
parent 73162a4bc3
commit 8e283f512a
2 changed files with 14 additions and 1 deletions

View File

@@ -938,7 +938,11 @@ Loop:
break
}
// Keep + or , at the end
masked += strings.Repeat(" ", loc[1]-1) + action[loc[1]-1:loc[1]]
lastChar := action[loc[1]-1]
if lastChar == '+' || lastChar == ',' {
loc[1]--
}
masked += strings.Repeat(" ", loc[1])
action = action[loc[1]:]
}
masked = strings.Replace(masked, "::", string([]rune{escapedColon, ':'}), -1)