Skip to content

Commit

Permalink
Motif: Fix scrollbar width after splitting.
Browse files Browse the repository at this point in the history
The bug is observable with

- for right bar:

  vim --clean -g -sw 5 +'se splitright' +vs

- for left bar:

  vim --clean -g -sw 5 +'se splitright' +vs

  Then press q: to open a full width horizontal split.
  • Loading branch information
qsmodo committed Feb 8, 2023
1 parent 4be18e7 commit 82d1ca8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gui_motif.c
Expand Up @@ -1801,12 +1801,14 @@ gui_mch_create_scrollbar(
XtSetArg(args[n], XmNtopAttachment, XmATTACH_FORM); n++;
XtSetArg(args[n], XmNbottomAttachment, XmATTACH_OPPOSITE_FORM); n++;
XtSetArg(args[n], XmNleftAttachment, XmATTACH_FORM); n++;
XtSetArg(args[n], XmNwidth, gui.scrollbar_width); n++;
break;

case SBAR_RIGHT:
XtSetArg(args[n], XmNtopAttachment, XmATTACH_FORM); n++;
XtSetArg(args[n], XmNbottomAttachment, XmATTACH_OPPOSITE_FORM); n++;
XtSetArg(args[n], XmNrightAttachment, XmATTACH_FORM); n++;
XtSetArg(args[n], XmNwidth, gui.scrollbar_width); n++;
break;

case SBAR_BOTTOM:
Expand Down

0 comments on commit 82d1ca8

Please sign in to comment.