From ae0c56c9c2762f386f001478d764af005a9fa15f Mon Sep 17 00:00:00 2001 From: Mitchell Foral Date: Thu, 1 Apr 2021 13:51:42 +1100 Subject: Fix drawing of calltip on curses. --- src/CallTip.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/CallTip.cxx b/src/CallTip.cxx index 29208cb74..22f559ef7 100644 --- a/src/CallTip.cxx +++ b/src/CallTip.cxx @@ -250,7 +250,7 @@ void CallTip::PaintCT(Surface *surfaceWindow) { offsetMain = insetX; // initial alignment assuming no arrows PaintContents(surfaceWindow, true); -#ifndef __APPLE__ +#if !defined(__APPLE__) && !PLAT_CURSES // OSX doesn't put borders on "help tags" // Draw a raised border around the edges of the window constexpr XYPOSITION border = 1.0f; @@ -292,7 +292,9 @@ PRectangle CallTip::CallTipStart(Sci::Position pos, Point pt, int textHeight, co rectDown = PRectangle(0,0,0,0); offsetMain = insetX; // changed to right edge of any arrows lineHeight = static_cast(std::lround(surfaceMeasure->Height(font.get()))); +#if !PLAT_CURSES widthArrow = lineHeight * 9 / 10; +#endif const int width = PaintContents(surfaceMeasure.get(), false) + insetX; // The returned -- cgit v1.2.3