Fix double borders in mode buttons.

Co-authored-by: Kyle <kyle@zed.dev>
This commit is contained in:
Piotr Osiewicz
2023-08-14 14:43:06 +02:00
co-authored by Kyle
parent 7314456685
commit d17aba4fd3
2 changed files with 8 additions and 8 deletions
+5 -4
View File
@@ -51,15 +51,16 @@ impl SearchMode {
pub(crate) fn border_right(&self) -> bool {
match self {
SearchMode::Text => false,
_ => true,
SearchMode::Regex => true,
SearchMode::Text => true,
SearchMode::Semantic => true,
}
}
pub(crate) fn border_left(&self) -> bool {
match self {
SearchMode::Regex => false,
_ => true,
SearchMode::Text => true,
_ => false,
}
}