@@ -73,11 +73,11 @@ func (b *Buffer) GetWord() ([]byte, int) {
7373 return []byte {}, - 1
7474 }
7575
76- if util .IsNonAlphaNumeric (b .RuneAt (c .Loc .Move (- 1 , b ))) {
76+ if util .IsNonWordChar (b .RuneAt (c .Loc .Move (- 1 , b ))) {
7777 return []byte {}, c .X
7878 }
7979
80- args := bytes .FieldsFunc (l , util .IsNonAlphaNumeric )
80+ args := bytes .FieldsFunc (l , util .IsNonWordChar )
8181 input := args [len (args )- 1 ]
8282 return input , c .X - util .CharacterCount (input )
8383}
@@ -166,7 +166,7 @@ func BufferComplete(b *Buffer) ([]string, []string) {
166166 var suggestions []string
167167 for i := c .Y ; i >= 0 ; i -- {
168168 l := b .LineBytes (i )
169- words := bytes .FieldsFunc (l , util .IsNonAlphaNumeric )
169+ words := bytes .FieldsFunc (l , util .IsNonWordChar )
170170 for _ , w := range words {
171171 if bytes .HasPrefix (w , input ) && util .CharacterCount (w ) > inputLen {
172172 strw := string (w )
@@ -179,7 +179,7 @@ func BufferComplete(b *Buffer) ([]string, []string) {
179179 }
180180 for i := c .Y + 1 ; i < b .LinesNum (); i ++ {
181181 l := b .LineBytes (i )
182- words := bytes .FieldsFunc (l , util .IsNonAlphaNumeric )
182+ words := bytes .FieldsFunc (l , util .IsNonWordChar )
183183 for _ , w := range words {
184184 if bytes .HasPrefix (w , input ) && util .CharacterCount (w ) > inputLen {
185185 strw := string (w )
0 commit comments