Skip to content

v2.0.1-alpha.13: fix crash when COMP_POINT is greater than COMP_LINE size (#128)

Compare
Choose a tag to compare
@posener posener released this 17 Nov 16:08
· 12 commits to master since this release
246bd25
Some shells (inexplicably) occasionally have a COMP_POINT that is greater than the COMP_LINE size. When that happens completion should be based on length of the COMP_LINE to avoid an out of bounds error.

See the original hack fix here: https://github.com/chriswalz/bit/blob/master/cmd/bitcomplete.go on line 39