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) {
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) {
---
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
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
---
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
---
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
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
!_/
Sent from my BlackBerry 10 smartphone on the TELUS network.
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