diff options
author | Gregory Heytings <gregory@heytings.org> | 2022-08-21 19:45:42 +0000 |
---|---|---|
committer | Gregory Heytings <gregory@heytings.org> | 2022-08-21 21:46:21 +0200 |
commit | 890d6c15a752b6b12dc639a43277466852aa8470 (patch) | |
tree | 3bc73b23b8d2cb3b5a49266f8f1f609ca02b1500 /src/editfns.c | |
parent | 01efdbd33664d45818f0686589d38e2bfad0ab69 (diff) | |
download | emacs-890d6c15a752b6b12dc639a43277466852aa8470.tar.gz emacs-890d6c15a752b6b12dc639a43277466852aa8470.tar.bz2 emacs-890d6c15a752b6b12dc639a43277466852aa8470.zip |
; * src/editfns.c (Fnarrow_to_region): Two forgotten cases.
Diffstat (limited to 'src/editfns.c')
-rw-r--r-- | src/editfns.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/editfns.c b/src/editfns.c index c6727832928..58ebe5540f5 100644 --- a/src/editfns.c +++ b/src/editfns.c @@ -2751,6 +2751,8 @@ limit of the locked restriction is used instead of the argument. */) ptrdiff_t begv = XFIXNUM (Fcar (Fcdr (Fcar (Vnarrowing_locks)))); ptrdiff_t zv = XFIXNUM (Fcdr (Fcdr (Fcar (Vnarrowing_locks)))); if (s < begv) s = begv; + if (s > zv) s = zv; + if (e < begv) e = begv; if (e > zv) e = zv; } |