disable OM2.3.1 by default, enable with make bertw OM231=1
[nedit-bw.git] / fix_hide_hscrollbar.patch
blob00bab6f2d87c824d31b4d84d53bf3375b1b126e6
1 Subject: Fix visibility of the horizontal scrollbar
3 ---
5 source/textDisp.c | 2 +-
6 1 file changed, 1 insertion(+), 1 deletion(-)
8 diff --quilt old/source/textDisp.c new/source/textDisp.c
9 --- old/source/textDisp.c
10 +++ new/source/textDisp.c
11 @@ -3925,11 +3925,11 @@ static int wrapUsesCharacter(textDisp *t
12 ** the longest possible line.
14 static void hideOrShowHScrollBar(textDisp *textD)
16 if (textD->continuousWrap && (textD->wrapMargin == 0 || textD->wrapMargin *
17 - textD->fontStruct->max_bounds.width < textD->width))
18 + textD->fontStruct->max_bounds.width <= textD->width))
19 XtUnmanageChild(textD->hScrollBar);
20 else
21 XtManageChild(textD->hScrollBar);