diff options
| author | noname <noname@inventati.org> | 2015-04-30 20:51:35 +0000 |
|---|---|---|
| committer | Roberto E. Vargas Caballero <k0ga@shike2.com> | 2015-05-04 11:16:08 +0200 |
| commit | 765bb0fd1420e36b04ecc03c18f01f5bda96c563 (patch) | |
| tree | 7855b067ac44e05068ceb8456457316df2645d0d | |
| parent | 07ce96a3a0f4a650933f5f586082cbf2064ea2c1 (diff) | |
| download | st-765bb0fd1420e36b04ecc03c18f01f5bda96c563.tar.gz st-765bb0fd1420e36b04ecc03c18f01f5bda96c563.zip | |
Remove first argument of selsnap.
| -rw-r--r-- | st.c | 10 |
1 files changed, 5 insertions, 5 deletions
| @@ -453,7 +453,7 @@ static inline bool selected(int, int); | |||
| 453 | static char *getsel(void); | 453 | static char *getsel(void); |
| 454 | static void selcopy(Time); | 454 | static void selcopy(Time); |
| 455 | static void selscroll(int, int); | 455 | static void selscroll(int, int); |
| 456 | static void selsnap(int, int *, int *, int); | 456 | static void selsnap(int *, int *, int); |
| 457 | static int x2col(int); | 457 | static int x2col(int); |
| 458 | static int y2row(int); | 458 | static int y2row(int); |
| 459 | static void getbuttoninfo(XEvent *); | 459 | static void getbuttoninfo(XEvent *); |
| @@ -695,8 +695,8 @@ selnormalize(void) { | |||
| 695 | sel.nb.y = MIN(sel.ob.y, sel.oe.y); | 695 | sel.nb.y = MIN(sel.ob.y, sel.oe.y); |
| 696 | sel.ne.y = MAX(sel.ob.y, sel.oe.y); | 696 | sel.ne.y = MAX(sel.ob.y, sel.oe.y); |
| 697 | 697 | ||
| 698 | selsnap(sel.snap, &sel.nb.x, &sel.nb.y, -1); | 698 | selsnap(&sel.nb.x, &sel.nb.y, -1); |
| 699 | selsnap(sel.snap, &sel.ne.x, &sel.ne.y, +1); | 699 | selsnap(&sel.ne.x, &sel.ne.y, +1); |
| 700 | 700 | ||
| 701 | /* expand selection over line breaks */ | 701 | /* expand selection over line breaks */ |
| 702 | if (sel.type == SEL_RECTANGULAR) | 702 | if (sel.type == SEL_RECTANGULAR) |
| @@ -720,12 +720,12 @@ selected(int x, int y) { | |||
| 720 | } | 720 | } |
| 721 | 721 | ||
| 722 | void | 722 | void |
| 723 | selsnap(int mode, int *x, int *y, int direction) { | 723 | selsnap(int *x, int *y, int direction) { |
| 724 | int newx, newy, xt, yt; | 724 | int newx, newy, xt, yt; |
| 725 | bool delim, prevdelim; | 725 | bool delim, prevdelim; |
| 726 | Glyph *gp, *prevgp; | 726 | Glyph *gp, *prevgp; |
| 727 | 727 | ||
| 728 | switch(mode) { | 728 | switch(sel.snap) { |
| 729 | case SNAP_WORD: | 729 | case SNAP_WORD: |
| 730 | /* | 730 | /* |
| 731 | * Snap around if the word wraps around at the end or | 731 | * Snap around if the word wraps around at the end or |
