summaryrefslogtreecommitdiff
path: root/src/editfns.c
diff options
context:
space:
mode:
authorGregory Heytings <gregory@heytings.org>2022-08-21 19:45:42 +0000
committerGregory Heytings <gregory@heytings.org>2022-08-21 21:46:21 +0200
commit890d6c15a752b6b12dc639a43277466852aa8470 (patch)
tree3bc73b23b8d2cb3b5a49266f8f1f609ca02b1500 /src/editfns.c
parent01efdbd33664d45818f0686589d38e2bfad0ab69 (diff)
downloademacs-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.c2
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;
}