diff options
| author | Gregory Heytings | 2022-11-27 10:25:19 +0000 |
|---|---|---|
| committer | Gregory Heytings | 2022-11-27 11:26:24 +0100 |
| commit | 18fa159fa91b515f2281b83648961fdc5e21aca7 (patch) | |
| tree | 18c07e87f946d39332ef17361d58697b159f08d8 | |
| parent | 914b7903ad1c68cff174274d585685939186bcf4 (diff) | |
| download | emacs-feature/improved-locked-narrowing.tar.gz emacs-feature/improved-locked-narrowing.zip | |
; * src/xdisp.c (get_locked_narrowing_begv): Minor change.feature/improved-locked-narrowing
| -rw-r--r-- | src/editfns.c | 2 | ||||
| -rw-r--r-- | src/xdisp.c | 3 |
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) | |||
| 2786 | } | 2786 | } |
| 2787 | 2787 | ||
| 2788 | /* Helper functions to save and restore the narrowing locks of the | 2788 | /* Helper functions to save and restore the narrowing locks of the |
| 2789 | current buffer in save-restriction. */ | 2789 | current buffer in Fsave_restriction. */ |
| 2790 | static Lisp_Object | 2790 | static Lisp_Object |
| 2791 | narrowing_locks_save (void) | 2791 | narrowing_locks_save (void) |
| 2792 | { | 2792 | { |
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) | |||
| 3538 | { | 3538 | { |
| 3539 | if (long_line_locked_narrowing_region_size == 0) | 3539 | if (long_line_locked_narrowing_region_size == 0) |
| 3540 | return BEGV; | 3540 | return BEGV; |
| 3541 | int begv; | ||
| 3542 | int len = long_line_locked_narrowing_region_size / 2; | 3541 | int len = long_line_locked_narrowing_region_size / 2; |
| 3543 | begv = max (pos - len, BEGV); | 3542 | int begv = max (pos - len, BEGV); |
| 3544 | int limit = long_line_locked_narrowing_bol_search_limit; | 3543 | int limit = long_line_locked_narrowing_bol_search_limit; |
| 3545 | while (limit) | 3544 | while (limit) |
| 3546 | { | 3545 | { |