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)
This commit is contained in:
parent
f3afb23d26
commit
83000ae6d7
1 changed files with 2 additions and 2 deletions
|
@ -7555,7 +7555,7 @@ get_next_display_element (struct it *it)
|
|||
/* Merge `nobreak-space' into the current face. */
|
||||
face_id = merge_faces (it->w, Qnobreak_space, 0,
|
||||
it->face_id);
|
||||
XSETINT (it->ctl_chars[0], ' ');
|
||||
XSETINT (it->ctl_chars[0], it->c);
|
||||
ctl_len = 1;
|
||||
goto display_control;
|
||||
}
|
||||
|
@ -7568,7 +7568,7 @@ get_next_display_element (struct it *it)
|
|||
/* Merge `nobreak-space' into the current face. */
|
||||
face_id = merge_faces (it->w, Qnobreak_hyphen, 0,
|
||||
it->face_id);
|
||||
XSETINT (it->ctl_chars[0], '-');
|
||||
XSETINT (it->ctl_chars[0], it->c);
|
||||
ctl_len = 1;
|
||||
goto display_control;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue