aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2020-08-15 13:23:58 +0300
committerEli Zaretskii2020-08-15 13:23:58 +0300
commit83000ae6d7c6e3c615b16d2ea9274e1088d24178 (patch)
treebe33e7bafded80b49b7643bf1ff514a1d0785058 /src
parentf3afb23d26b948cfa095b221ca32090a2858e8f1 (diff)
downloademacs-83000ae6d7c6e3c615b16d2ea9274e1088d24178.tar.gz
emacs-83000ae6d7c6e3c615b16d2ea9274e1088d24178.zip
Don't wrap lines at NBSP when nobreak-char-display is t
* src/xdisp.c (get_next_display_element): When nobreak-char-display is t, display NBSP and non-ASCII hyphens as themselves, not as their ASCII counterparts, just with the nobreak-space/nobreak-hyphen face. (Bug#42811)
Diffstat (limited to 'src')
-rw-r--r--src/xdisp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index 4fe1c4288af..f05319aa644 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -7555,7 +7555,7 @@ get_next_display_element (struct it *it)
7555 /* Merge `nobreak-space' into the current face. */ 7555 /* Merge `nobreak-space' into the current face. */
7556 face_id = merge_faces (it->w, Qnobreak_space, 0, 7556 face_id = merge_faces (it->w, Qnobreak_space, 0,
7557 it->face_id); 7557 it->face_id);
7558 XSETINT (it->ctl_chars[0], ' '); 7558 XSETINT (it->ctl_chars[0], it->c);
7559 ctl_len = 1; 7559 ctl_len = 1;
7560 goto display_control; 7560 goto display_control;
7561 } 7561 }
@@ -7568,7 +7568,7 @@ get_next_display_element (struct it *it)
7568 /* Merge `nobreak-space' into the current face. */ 7568 /* Merge `nobreak-space' into the current face. */
7569 face_id = merge_faces (it->w, Qnobreak_hyphen, 0, 7569 face_id = merge_faces (it->w, Qnobreak_hyphen, 0,
7570 it->face_id); 7570 it->face_id);
7571 XSETINT (it->ctl_chars[0], '-'); 7571 XSETINT (it->ctl_chars[0], it->c);
7572 ctl_len = 1; 7572 ctl_len = 1;
7573 goto display_control; 7573 goto display_control;
7574 } 7574 }