Use common v0.8.0 UI, transport, and translation APIs
This commit is contained in:
1 parent
317303adb7
commit
92fd479336
344 files changed
+4102
-4973
No files matched your search
@@ -44,7 +44,7 @@ func New(exactMatches, customPatterns []string) (*Detector, error) {
|
||||
return detector, nil
|
||||
}
|
||||
|
||||
func (d *Detector) matches_prompt(text string) bool {
|
||||
func (d *Detector) matchesPrompt(text string) bool {
|
||||
if text == "" {
|
||||
return false
|
||||
}
|
||||
@@ -80,7 +80,7 @@ func (d *Detector) Observe(next screen.Snapshot) string {
|
||||
if stable {
|
||||
for row := 0; row < next.Rows; row++ {
|
||||
text := strings.TrimSpace(next.Text(row))
|
||||
if counts[text] > d.previous[text] && (completionPattern.MatchString(text) || row == next.Y && d.matches_prompt(text)) {
|
||||
if counts[text] > d.previous[text] && (completionPattern.MatchString(text) || row == next.Y && d.matchesPrompt(text)) {
|
||||
result = text
|
||||
break
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user