[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: * info/session.c (info_display_file_info): Add 1
From: |
Gavin D. Smith |
Subject: |
branch master updated: * info/session.c (info_display_file_info): Add 1 to line number so that the first line is reported as line 1 rather than line 0 and that the last line is reported as 100% through the node. |
Date: |
Tue, 07 Dec 2021 16:08:22 -0500 |
This is an automated email from the git hooks/post-receive script.
gavin pushed a commit to branch master
in repository texinfo.
The following commit(s) were added to refs/heads/master by this push:
new d1f76c7 * info/session.c (info_display_file_info): Add 1 to line
number so that the first line is reported as line 1 rather than line 0 and that
the last line is reported as 100% through the node.
d1f76c7 is described below
commit d1f76c7156bc61e6566aceebe8b8e19e4d031b37
Author: Gavin Smith <gavinsmith0123@gmail.com>
AuthorDate: Tue Dec 7 21:08:10 2021 +0000
* info/session.c (info_display_file_info): Add 1 to line number so
that the first line is reported as line 1 rather than line 0 and that
the last line is reported as 100% through the node.
---
ChangeLog | 6 ++++++
info/session.c | 2 +-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 2b472a9..dc71ad0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2021-12-07 Gavin Smith <gavinsmith0123@gmail.com>
+
+ * info/session.c (info_display_file_info): Add 1 to line number so
+ that the first line is reported as line 1 rather than line 0 and that
+ the last line is reported as 100% through the node.
+
2021-11-24 Ken Brown <kbrown@cornell.edu>
* tp/Texinfo/XS/Makefile.am: Reference gnulib libraries when
diff --git a/info/session.c b/info/session.c
index 8222f9c..fdf5a47 100644
--- a/info/session.c
+++ b/info/session.c
@@ -3631,7 +3631,7 @@ DECLARE_INFO_COMMAND (info_display_file_info,
{
if (window->node->fullpath && *window->node->fullpath)
{
- int line = window_line_of_point (window);
+ int line = window_line_of_point (window) + 1;
window_message_in_echo_area ("File name: %s, line %d of %ld (%ld%%)",
window->node->subfile
? window->node->subfile
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: * info/session.c (info_display_file_info): Add 1 to line number so that the first line is reported as line 1 rather than line 0 and that the last line is reported as 100% through the node.,
Gavin D. Smith <=