aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--PATCHES2
-rw-r--r--config.def.h4
-rw-r--r--st.c2
-rw-r--r--st.h2
4 files changed, 5 insertions, 5 deletions
diff --git a/PATCHES b/PATCHES
index 290d230..1433cbf 100644
--- a/PATCHES
+++ b/PATCHES
@@ -1,6 +1,6 @@
st-boxdraw_v2-0.8.5.diff
st-clipboard-20180309-c5ba9c0.diff
-st-copyurl-multiline-20230406-211964d.diff (modified to not copy url, just highlight it)
+st-copyurl-multiline-20230406-211964d.diff (modified to not copy url, just highlight it. func renamed to selurl)
st-csi_22_23-0.8.5.diff
st-desktopentry-0.8.5.diff
st-drag-n-drop-0.9.2.diff
diff --git a/config.def.h b/config.def.h
index d9ce6cc..77e09e4 100644
--- a/config.def.h
+++ b/config.def.h
@@ -225,8 +225,8 @@ static Shortcut shortcuts[] = {
{ TERMMOD, XK_Y, selpaste, {.i = 0} },
{ ShiftMask, XK_Insert, selpaste, {.i = 0} },
{ TERMMOD, XK_Num_Lock, numlock, {.i = 0} },
- { MODKEY, XK_l, copyurl, {.i = 0} },
- { MODKEY|ShiftMask, XK_L, copyurl, {.i = 1} },
+ { MODKEY, XK_l, selurl, {.i = 0} },
+ { MODKEY|ShiftMask, XK_L, selurl, {.i = 1} },
{ TERMMOD, XK_l, selopen, {.i = 0} },
{ ShiftMask, XK_Page_Up, kscrollup, {.i = -1} },
{ ShiftMask, XK_Page_Down, kscrolldown, {.i = -1} },
diff --git a/st.c b/st.c
index 876f5cc..e3ec184 100644
--- a/st.c
+++ b/st.c
@@ -3256,7 +3256,7 @@ daddch(URLdfa *dfa, char c)
** Select and copy the previous url on screen (do nothing if there's no url).
*/
void
-copyurl(const Arg *arg) {
+selurl(const Arg *arg) {
int row = 0, /* row of current URL */
col = 0, /* column of current URL start */
colend = 0, /* column of last occurrence */
diff --git a/st.h b/st.h
index 95542f6..ee85b73 100644
--- a/st.h
+++ b/st.h
@@ -97,7 +97,7 @@ void printscreen(const Arg *);
void printsel(const Arg *);
void sendbreak(const Arg *);
void toggleprinter(const Arg *);
-void copyurl(const Arg *);
+void selurl(const Arg *);
int tattrset(int);
void tnew(int, int);