summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregory Heytings <gregory@heytings.org>2022-11-27 10:25:19 +0000
committerGregory Heytings <gregory@heytings.org>2022-11-27 11:26:24 +0100
commit18fa159fa91b515f2281b83648961fdc5e21aca7 (patch)
tree18c07e87f946d39332ef17361d58697b159f08d8
parent914b7903ad1c68cff174274d585685939186bcf4 (diff)
downloademacs-18fa159fa91b515f2281b83648961fdc5e21aca7.tar.gz
; * src/xdisp.c (get_locked_narrowing_begv): Minor change.
-rw-r--r--src/editfns.c2
-rw-r--r--src/xdisp.c3
2 files changed, 2 insertions, 3 deletions
diff --git a/src/editfns.c b/src/editfns.c
index a3a8f3edefd..b364f441b53 100644
--- a/src/editfns.c
+++ b/src/editfns.c
@@ -2786,7 +2786,7 @@ reset_outermost_narrowings (void)
}
/* Helper functions to save and restore the narrowing locks of the
- current buffer in save-restriction. */
+ current buffer in Fsave_restriction. */
static Lisp_Object
narrowing_locks_save (void)
{
diff --git a/src/xdisp.c b/src/xdisp.c
index 138c3646790..331fbe02128 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -3538,9 +3538,8 @@ get_locked_narrowing_begv (ptrdiff_t pos)
{
if (long_line_locked_narrowing_region_size == 0)
return BEGV;
- int begv;
int len = long_line_locked_narrowing_region_size / 2;
- begv = max (pos - len, BEGV);
+ int begv = max (pos - len, BEGV);
int limit = long_line_locked_narrowing_bol_search_limit;
while (limit)
{