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 | |
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);  static char *getsel(void);  static void selcopy(Time);  static void selscroll(int, int); -static void selsnap(int, int *, int *, int); +static void selsnap(int *, int *, int);  static int x2col(int);  static int y2row(int);  static void getbuttoninfo(XEvent *); @@ -695,8 +695,8 @@ selnormalize(void) {  	sel.nb.y = MIN(sel.ob.y, sel.oe.y);  	sel.ne.y = MAX(sel.ob.y, sel.oe.y); -	selsnap(sel.snap, &sel.nb.x, &sel.nb.y, -1); -	selsnap(sel.snap, &sel.ne.x, &sel.ne.y, +1); +	selsnap(&sel.nb.x, &sel.nb.y, -1); +	selsnap(&sel.ne.x, &sel.ne.y, +1);  	/* expand selection over line breaks */  	if (sel.type == SEL_RECTANGULAR) @@ -720,12 +720,12 @@ selected(int x, int y) {  }  void -selsnap(int mode, int *x, int *y, int direction) { +selsnap(int *x, int *y, int direction) {  	int newx, newy, xt, yt;  	bool delim, prevdelim;  	Glyph *gp, *prevgp; -	switch(mode) { +	switch(sel.snap) {  	case SNAP_WORD:  		/*  		 * Snap around if the word wraps around at the end or  |