more ProOpen and PostOpen hook points
[nedit-bw.git] / fix_hide_hscrollbar.patch
blobb09617f851c357fc970af35965c2a45ce8eb9545
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 @@ -3927,7 +3927,7 @@ static int wrapUsesCharacter(textDisp *t
12 static void hideOrShowHScrollBar(textDisp *textD)
14 if (textD->continuousWrap && (textD->wrapMargin == 0 || textD->wrapMargin *
15 - textD->fontStruct->max_bounds.width < textD->width))
16 + textD->fontStruct->max_bounds.width <= textD->width))
17 XtUnmanageChild(textD->hScrollBar);
18 else
19 XtManageChild(textD->hScrollBar);