aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2013-02-08 16:27:04 +0200
committerEli Zaretskii2013-02-08 16:27:04 +0200
commitc220ea73ff3c6fa59b75837c950cc729295f2038 (patch)
tree1d60fe97a5a03c0b4e6f7f2a4d361c64d529f4c9
parent4d34e0a7bf6ab47fd9face598e0b4c0f80218ae9 (diff)
downloademacs-c220ea73ff3c6fa59b75837c950cc729295f2038.tar.gz
emacs-c220ea73ff3c6fa59b75837c950cc729295f2038.zip
src/xdisp.c: Fix commentary of display_count_lines.
-rw-r--r--src/xdisp.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index 9fd4f637b64..c0dafc820ce 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -21816,11 +21816,15 @@ decode_mode_spec (struct window *w, register int c, int field_width,
21816} 21816}
21817 21817
21818 21818
21819/* Count up to COUNT lines starting from START_BYTE. 21819/* Count up to COUNT lines starting from START_BYTE. COUNT negative
21820 But don't go beyond LIMIT_BYTE. 21820 means count lines back from START_BYTE. But don't go beyond
21821 Return the number of lines thus found (always nonnegative). 21821 LIMIT_BYTE. Return the number of lines thus found (always
21822 21822 nonnegative).
21823 Set *BYTE_POS_PTR to 1 if we found COUNT lines, 0 if we hit LIMIT. */ 21823
21824 Set *BYTE_POS_PTR to the byte position where we stopped. This is
21825 either the position COUNT lines after/before START_BYTE, if we
21826 found COUNT lines, or LIMIT_BYTE if we hit the limit before finding
21827 COUNT lines. */
21824 21828
21825static ptrdiff_t 21829static ptrdiff_t
21826display_count_lines (ptrdiff_t start_byte, 21830display_count_lines (ptrdiff_t start_byte,