don't initialize i to itself
This commit is contained in:
parent
bbb02527b1
commit
4507b704e0
2
dunst.c
2
dunst.c
@ -542,7 +542,7 @@ void handle_mouse_click(XEvent ev)
|
|||||||
move_all_to_history();
|
move_all_to_history();
|
||||||
} else if (ev.xbutton.button == Button1) {
|
} else if (ev.xbutton.button == Button1) {
|
||||||
int i = ev.xbutton.y / font_h;
|
int i = ev.xbutton.y / font_h;
|
||||||
for (i = i; i > 0; i--) {
|
for (; i > 0; i--) {
|
||||||
/* if the user clicks on the "(x more)" message,
|
/* if the user clicks on the "(x more)" message,
|
||||||
* keep iter at the last displayed message and
|
* keep iter at the last displayed message and
|
||||||
* remove that instead
|
* remove that instead
|
||||||
|
Loading…
x
Reference in New Issue
Block a user