diff options
author | Bram Moolenaar <Bram@vim.org> | 2023-01-22 21:14:53 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2023-01-22 21:14:53 +0000 |
commit | ebfec1c531f32d424bb2aca6e7391ef3bfcbfe20 (patch) | |
tree | d017ab5fcc15f2eef851de089c3b2aef39d7a387 /src/gui_motif.c | |
parent | 3d79f0a4309995956bd8889940cca22f7a15881d (diff) |
patch 9.0.1234: the code style has to be checked manuallyv9.0.1234
Problem: The code style has to be checked manually.
Solution: Add basic code style checks in a test. Fix or avoid uncovered
problems.
Diffstat (limited to 'src/gui_motif.c')
-rw-r--r-- | src/gui_motif.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/gui_motif.c b/src/gui_motif.c index 5e18f20c8e..b25b99186d 100644 --- a/src/gui_motif.c +++ b/src/gui_motif.c @@ -167,16 +167,17 @@ tabline_scroller_clicked( Dimension width, height; tab_scroll_w = XtNameToWidget(tabLine, scroller_name); - if (tab_scroll_w != (Widget)0) { + if (tab_scroll_w != (Widget)0) + { XtVaGetValues(tab_scroll_w, XmNx, &pos_x, XmNy, &pos_y, XmNwidth, &width, XmNheight, &height, NULL); - if (pos_x >= 0) { + if (pos_x >= 0) + { // Tab scroller (next) is visible - if ((event->x >= pos_x) && (event->x <= pos_x + width) && - (event->y >= pos_y) && (event->y <= pos_y + height)) { + if (event->x >= pos_x && event->x <= pos_x + width + && event->y >= pos_y && event->y <= pos_y + height) // Clicked on the scroller return TRUE; - } } } return FALSE; |