diff options
Diffstat (limited to 'menubar/search.swift')
| -rw-r--r-- | menubar/search.swift | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/menubar/search.swift b/menubar/search.swift index 21db063..2bc044a 100644 --- a/menubar/search.swift +++ b/menubar/search.swift @@ -171,7 +171,7 @@ struct SearchState: Equatable { for match in visible { let row = match.row let marker = row.paneId == selected ? "›" : " " - lines.append("\(marker) \(row.status.symbol) \(row.status.rawValue)\t\(row.label)\t\(row.subtitle)") + lines.append("\(marker) \(row.status.symbol) \(row.status.rawValue)\t\(row.markedLabel)\t\(row.subtitle)") } lines.append(footer) return lines.joined(separator: "\n") @@ -192,7 +192,7 @@ private func highlightedTitle(_ match: SearchMatch) -> NSAttributedString { let text = NSMutableAttributedString( attributedString: rowTitle(match.row, primary: mochaText, secondary: mochaSubtext)) guard !match.labelPositions.isEmpty else { return text } - let prefix = "\(match.row.status.symbol) ".utf16.count + let prefix = rowTitlePrefix(match.row).utf16.count let font = NSFont.boldSystemFont(ofSize: NSFont.menuFont(ofSize: 0).pointSize) let label = Array(match.row.label) var utf16Offset = prefix |
