mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-23 14:59:47 +03:00
Minor style tweaks.
This commit is contained in:
parent
1c40d8a58c
commit
081976105a
@ -760,8 +760,8 @@ void html_mouse_action(struct content *c, struct browser_window *bw,
|
||||
|
||||
done = true;
|
||||
}
|
||||
}
|
||||
else if (mouse & BROWSER_MOUSE_PRESS_1)
|
||||
|
||||
} else if (mouse & BROWSER_MOUSE_PRESS_1)
|
||||
selection_clear(&html->sel, true);
|
||||
}
|
||||
|
||||
@ -778,10 +778,10 @@ void html_mouse_action(struct content *c, struct browser_window *bw,
|
||||
CONTENT_MSG_DRAGSAVE,
|
||||
msg_data);
|
||||
} else {
|
||||
if (drag_candidate == NULL)
|
||||
if (drag_candidate == NULL) {
|
||||
browser_window_page_drag_start(
|
||||
bw, x, y);
|
||||
else {
|
||||
} else {
|
||||
html_box_drag_start(
|
||||
drag_candidate,
|
||||
x, y);
|
||||
@ -798,10 +798,10 @@ void html_mouse_action(struct content *c, struct browser_window *bw,
|
||||
CONTENT_MSG_DRAGSAVE,
|
||||
msg_data);
|
||||
} else {
|
||||
if (drag_candidate == NULL)
|
||||
if (drag_candidate == NULL) {
|
||||
browser_window_page_drag_start(
|
||||
bw, x, y);
|
||||
else {
|
||||
} else {
|
||||
html_box_drag_start(
|
||||
drag_candidate,
|
||||
x, y);
|
||||
|
@ -521,8 +521,8 @@ void textplain_reformat(struct content *c, int width, int height)
|
||||
/* break at last space in line */
|
||||
i = space;
|
||||
line[line_count-1].length = (i + 1) - line_start;
|
||||
}
|
||||
else
|
||||
|
||||
} else
|
||||
line[line_count-1].length = i - line_start;
|
||||
}
|
||||
line[line_count++].start = line_start = i + 1;
|
||||
|
Loading…
Reference in New Issue
Block a user