mirror of
https://github.com/junegunn/fzf.git
synced 2026-08-14 03:41:07 +08:00
Set inline separator caps per side
This commit is contained in:
+3
-1
@@ -1167,8 +1167,10 @@ func (w *LightWindow) DrawHSeparator(row int, windowType WindowType, useBottom b
|
|||||||
line = w.border.bottom
|
line = w.border.bottom
|
||||||
}
|
}
|
||||||
var leftCap, rightCap rune
|
var leftCap, rightCap rune
|
||||||
if shape.HasLeft() || shape.HasRight() {
|
if shape.HasLeft() {
|
||||||
leftCap = w.border.leftMid
|
leftCap = w.border.leftMid
|
||||||
|
}
|
||||||
|
if shape.HasRight() {
|
||||||
rightCap = w.border.rightMid
|
rightCap = w.border.rightMid
|
||||||
}
|
}
|
||||||
w.drawHLine(row, line, leftCap, rightCap, color)
|
w.drawHLine(row, line, leftCap, rightCap, color)
|
||||||
|
|||||||
+3
-1
@@ -1067,8 +1067,10 @@ func (w *TcellWindow) DrawHSeparator(row int, windowType WindowType, useBottom b
|
|||||||
line = w.borderStyle.bottom
|
line = w.borderStyle.bottom
|
||||||
}
|
}
|
||||||
var leftCap, rightCap rune
|
var leftCap, rightCap rune
|
||||||
if shape.HasLeft() || shape.HasRight() {
|
if shape.HasLeft() {
|
||||||
leftCap = w.borderStyle.leftMid
|
leftCap = w.borderStyle.leftMid
|
||||||
|
}
|
||||||
|
if shape.HasRight() {
|
||||||
rightCap = w.borderStyle.rightMid
|
rightCap = w.borderStyle.rightMid
|
||||||
}
|
}
|
||||||
w.drawHLine(w.top+row, line, leftCap, rightCap, style)
|
w.drawHLine(w.top+row, line, leftCap, rightCap, style)
|
||||||
|
|||||||
Reference in New Issue
Block a user