comparison src/window.c @ 5919:8cb42aa3c495 v7.4.301

updated for version 7.4.301 Problem: Still a scrolling problem when loading a session file. Solution: Fix off-by-one mistake. (Nobuhiro Takasaki)
author Bram Moolenaar <bram@vim.org>
date Thu, 22 May 2014 15:17:29 +0200
parents daf7e98675cf
children 88a6e9f33822
comparison
equal deleted inserted replaced
5918:0c43318e476a 5919:8cb42aa3c495
5746 hasFoldingWin(wp, lnum, NULL, &lnum, TRUE, NULL); 5746 hasFoldingWin(wp, lnum, NULL, &lnum, TRUE, NULL);
5747 #endif 5747 #endif
5748 lnum++; 5748 lnum++;
5749 wp->w_wrow -= line_size + sline; 5749 wp->w_wrow -= line_size + sline;
5750 } 5750 }
5751 else if (sline > 0) 5751 else if (sline >= 0)
5752 { 5752 {
5753 /* First line of file reached, use that as topline. */ 5753 /* First line of file reached, use that as topline. */
5754 lnum = 1; 5754 lnum = 1;
5755 wp->w_wrow -= sline; 5755 wp->w_wrow -= sline;
5756 } 5756 }