It is my mistake.
The previous patch was too short.
When I repeat the failure, I lose confidence.
I note further in the future.
--------
Thanks.
Nobuhiro Takasaki
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.
diff -r 54d96e3b2eec src/window.c
--- a/src/window.c Thu May 22 21:22:19 2014 +0200
+++ b/src/window.c Mon May 26 00:09:33 2014 +0900
@@ -5710,8 +5710,9 @@
--wp->w_wrow;
}
}
+ set_topline(wp, lnum);
}
- else
+ else if (sline > 0)
{
while (sline > 0 && lnum > 1)
{
@@ -5748,14 +5749,15 @@
lnum++;
wp->w_wrow -= line_size + sline;
}
- else if (sline >= 0)
+ else if (sline > 0)
{
/* First line of file reached, use that as topline. */
lnum = 1;
wp->w_wrow -= sline;
}
+
+ set_topline(wp, lnum);
}
- set_topline(wp, lnum);
}
if (wp == curwin)