diff options
| author | Eli Zaretskii | 2021-12-09 21:29:32 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2021-12-09 21:29:32 +0200 |
| commit | c0b9041ebde82907711cc00a7c307fe622fb541c (patch) | |
| tree | b1aed307eb6053cf71f87f3d7204bad5658569fb /src | |
| parent | 8f3f785c555458f01759c376d700663e7d8dbc38 (diff) | |
| download | emacs-c0b9041ebde82907711cc00a7c307fe622fb541c.tar.gz emacs-c0b9041ebde82907711cc00a7c307fe622fb541c.zip | |
Fix logic in 'compute_window_start_on_continuation_line'
* src/xdisp.c (compute_window_start_on_continuation_line): Fix a
thinko in logic. Patch by dickmao <dick.r.chiang@gmail.com>.
(Bug#52378)
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index 813858422d4..89b295932ed 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -18089,7 +18089,7 @@ compute_window_start_on_continuation_line (struct window *w) | |||
| 18089 | point will not be visible with any window start we | 18089 | point will not be visible with any window start we |
| 18090 | compute. */ | 18090 | compute. */ |
| 18091 | if (IT_CHARPOS (it) <= PT | 18091 | if (IT_CHARPOS (it) <= PT |
| 18092 | || (CHARPOS (start_pos) - IT_CHARPOS (it) | 18092 | && (CHARPOS (start_pos) - IT_CHARPOS (it) |
| 18093 | /* PXW: Do we need upper bounds here? */ | 18093 | /* PXW: Do we need upper bounds here? */ |
| 18094 | < WINDOW_TOTAL_LINES (w) * WINDOW_TOTAL_COLS (w))) | 18094 | < WINDOW_TOTAL_LINES (w) * WINDOW_TOTAL_COLS (w))) |
| 18095 | { | 18095 | { |