[dev] [PATCH 6/7] selsnap: simplify SNAP_LINE case

2015-04-30 Thread noname
Also make sure y never exceeds term.row-1 even if ATTR_WRAP is set for some reason. --- st.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/st.c b/st.c index 4d383be..ac3c9f1 100644 --- a/st.c +++ b/st.c @@ -765,15 +765,15 @@ selsnap(int *x, int *y, int direction) {

[dev] [PATCH 7/7] Simplify selsnap and selnormalize.

2015-04-30 Thread noname
Use selsnap only for SNAP_WORD case. --- st.c | 96 1 file changed, 40 insertions(+), 56 deletions(-) diff --git a/st.c b/st.c index ac3c9f1..43fdbb3 100644 --- a/st.c +++ b/st.c @@ -693,8 +693,19 @@ selnormalize(void) {

[dev] [PATCH 4/5] selsnap: remove prevdelim variable

2015-04-30 Thread noname
--- st.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/st.c b/st.c index 62b0889..695233b 100644 --- a/st.c +++ b/st.c @@ -720,7 +720,7 @@ selected(int x, int y) { void selsnap(int *x, int *y, int direction) { int newx, newy, xt, yt; - bool delim, prevde

[dev] [PATCH 5/5] selsnap: remove xt variable

2015-04-30 Thread noname
It is equal to term.col-1 in any case. --- st.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/st.c b/st.c index 695233b..4d383be 100644 --- a/st.c +++ b/st.c @@ -719,7 +719,7 @@ selected(int x, int y) { void selsnap(int *x, int *y, int direction) { - int ne

[dev] [PATCH 3/3] selnormalize: check for SEL_REGULAR explicitly

2015-04-30 Thread noname
--- st.c | 16 +++- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/st.c b/st.c index 8a28df0..62b0889 100644 --- a/st.c +++ b/st.c @@ -683,8 +683,6 @@ tlinelen(int y) { void selnormalize(void) { - int i; - if(sel.type == SEL_REGULAR && sel.ob.y != sel.o

[dev] [PATCH 2/3] Remove first argument of selsnap.

2015-04-30 Thread noname
--- st.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/st.c b/st.c index 601a40e..8a28df0 100644 --- a/st.c +++ b/st.c @@ -453,7 +453,7 @@ static inline bool selected(int, int); static char *getsel(void); static void selcopy(Time); static void selscroll(int, int

[dev] [PATCH 1/3] selnormalize: make special case explicit

2015-04-30 Thread noname
Special case is when regular selection spans multiple lines. Otherwise, just sort sel.ob.x and sel.ob.y. --- st.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/st.c b/st.c index d954288..601a40e 100644 --- a/st.c +++ b/st.c @@ -685,12 +685,12 @@ void selnormalize(voi

Re: [dev] aijuboard

2015-04-30 Thread Sean Howard
!_/ Sent from my BlackBerry 10 smartphone on the TELUS network. ‎

Re: [dev] [sbase] Use of libutil

2015-04-30 Thread Connor Lane Smith
Reading the link again, it seems that the people 'helpfully' forwarding messages to this mailing list aren't the same as those authoring the messages. With that in mind, I'd like to stress that my irritating is towards those doing the forwarding, i.e. Marc, and not those just talking about the tool