aboutsummaryrefslogtreecommitdiff
path: root/xsrc/external/mit/xterm/dist/patch-dabbrev-word-constituent
blob: 2b5352b2d65efd934e3ab935b5ff6c1155a7281e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
$NetBSD$

--- misc.c.orig	2021-07-26 22:58:23.130598917 +0000
+++ misc.c
@@ -1374,7 +1374,15 @@ WMFrameWindow(XtermWidget xw)
  * (Tomasz J. Cholewo, t.cholewo@ieee.org)
  */
 
-#define IS_WORD_CONSTITUENT(x) ((x) != ' ' && (x) != '\0')
+#define IS_WORD_CONSTITUENT(x) ( \
+	(x) != '\'' && \
+	(x) != '"' && \
+	(x) != ':' && \
+	(x) != ';' && \
+	(x) != '#' && \
+	(x) != '(' && \
+	(x) != ')' && \
+	(x) != ' ' && (x) != '\0')
 
 static int
 dabbrev_prev_char(TScreen *screen, CELL *cell, LineData **ld)