Commit c8857a2c authored by David Lawrence Ramsey's avatar David Lawrence Ramsey
Browse files

in cut_to_eol(), fix an inaccurate comment

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2425 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
No related merge requests found
Showing with 7 additions and 4 deletions
+7 -4
...@@ -8,6 +8,9 @@ CVS code - ...@@ -8,6 +8,9 @@ CVS code -
- Fix assert to reference the proper variable, so that nano - Fix assert to reference the proper variable, so that nano
builds with DEBUG defined again. (Mike Frysinger, found by builds with DEBUG defined again. (Mike Frysinger, found by
Dmitri Vassilenko) Dmitri Vassilenko)
- cut.c:
cut_to_eol()
- Fix inaccurate comment. (DLR)
- files.c: - files.c:
do_browser() do_browser()
- Rename variable lineno to fileline to avoid confusion. (DLR) - Rename variable lineno to fileline to avoid confusion. (DLR)
......
...@@ -84,10 +84,10 @@ void cut_to_eol(void) ...@@ -84,10 +84,10 @@ void cut_to_eol(void)
move_to_filestruct(&cutbuffer, &cutbottom, current, current_x, move_to_filestruct(&cutbuffer, &cutbottom, current, current_x,
current, data_len); current, data_len);
else if (current->next != NULL) { else if (current->next != NULL) {
/* If we're at the end of the line, and the next line isn't the /* If we're at the end of the line, and it isn't the magicline,
* magicline, move all the text from the current position up to * move all the text from the current position up to the
* the beginning of the next line, i.e, the newline at the * beginning of the next line, i.e, the newline at the end, to
* end, to the cutbuffer. */ * the cutbuffer. */
move_to_filestruct(&cutbuffer, &cutbottom, current, current_x, move_to_filestruct(&cutbuffer, &cutbottom, current, current_x,
current->next, 0); current->next, 0);
placewewant = xplustabs(); placewewant = xplustabs();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment