Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
rsteube committed Dec 2, 2023
1 parent 7fe5a0a commit 35b57a2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tokenslice.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,15 +109,14 @@ func (t TokenSlice) WordbreakPrefix() string {
switch token.State {
case QUOTING_STATE, QUOTING_ESCAPING_STATE:
found = true
// TODO add value up to quote to prefix
continue
}

if found {
prefix = token.Value + prefix
}
}

if prefix == "" && len(t) > 0 {
prefix = "~"
}
return prefix
}

0 comments on commit 35b57a2

Please sign in to comment.