forked from aniani/vim
patch 9.0.1234: the code style has to be checked manually
Problem: The code style has to be checked manually. Solution: Add basic code style checks in a test. Fix or avoid uncovered problems.
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user