--- st-scrollback-0.8.5.diff.orig	2022-10-05 16:58:07.482512354 -0700
+++ st-scrollback-0.8.5.diff	2022-10-05 17:02:14.065461247 -0700
@@ -23,14 +23,15 @@
  
  /* macros */
  #define IS_SET(flag)		((term.mode & (flag)) != 0)
-@@ -42,6 +43,9 @@
- #define ISCONTROLC1(c)		(BETWEEN(c, 0x80, 0x9f))
- #define ISCONTROL(c)		(ISCONTROLC0(c) || ISCONTROLC1(c))
- #define ISDELIM(u)		(u && wcschr(worddelimiters, u))
-+#define TLINE(y)		((y) < term.scr ? term.hist[((y) + term.histi - \
-+				term.scr + HISTSIZE + 1) % HISTSIZE] : \
-+				term.line[(y) - term.scr])
- 
+@@ -43,6 +44,10 @@
+ #define ISCONTROL(c)           (ISCONTROLC0(c) || ISCONTROLC1(c))
+ #define ISDELIM(u)             (u && wcschr(worddelimiters, u))
+ #define IS_SNAP_LINE_DELIM(u) (u && wcschr(snap_line_delimiters, u))
++#define TLINE(y)               ((y) < term.scr ? term.hist[((y) + term.histi - \
++                               term.scr + HISTSIZE + 1) % HISTSIZE] : \
++                               term.line[(y) - term.scr])
++
+
  enum term_mode {
  	MODE_WRAP        = 1 << 0,
 @@ -115,6 +119,9 @@ typedef struct {
