| CODENOTIFIER | HelpYou are not signed inSign in |
Project: FAR manager
Revision: 1970
Author: skirda
Date: 03 Sep 2008 16:36:44
Changes:Viewe to Editor -> bug
Files:| ... | ...@@ -1 +1 @@ | |
| 0 | m4_define(BUILD,554)m4_dnl | |
| 0 | m4_define(BUILD,555)m4_dnl |
| ... | ...@@ -1,3 +1,12 @@ | |
| 1 | svs 04.09.2008 01:30:32 +0300 - build 555 | |
| 2 | ||
| 3 | 1. Bug. |
| ... | ...@@ -6334,6 +6334,45 @@ | |
| 6334 | 6334 | |
| 6335 | 6335 | //m_codepage = pp->Table; //BUGBUG!!!, LoadFile do it itself |
| 6336 | 6336 | |
| 6337 | if ( StartLine == -2) // from Viewer! | |
| 6338 | { | |
| 6339 | Edit *CurPtr=TopList; | |
| 6340 | long TotalSize=0; | |
| 6341 | ||
| 6342 | while (CurPtr!=NULL && CurPtr->m_next!=NULL) | |
| 6343 | { | |
| 6344 | const wchar_t *SaveStr,*EndSeq; | |
| 6345 | int Length; | |
| 6346 | ||
| 6347 | CurPtr->GetBinaryString(&SaveStr,&EndSeq,Length); | |
| 6348 | TotalSize+=Length+StrLength(EndSeq); | |
| 6349 | ||
| 6350 | if (TotalSize>StartChar) | |
| 6351 | break; | |
| 6352 | ||
| 6353 | CurPtr=CurPtr->m_next; | |
| 6354 | NumLine++; | |
| 6355 | } | |
| 6356 | ||
| 6357 | TopScreen=CurLine=CurPtr; | |
| 6358 | ||
| 6359 | if (NumLine == pp->Line - pp->ScreenLine) | |
| 6360 | { | |
| 6361 | Lock (); | |
| 6362 | ||
| 6363 | for (DWORD I=0; I < (DWORD)pp->ScreenLine; I++) | |
| 6364 | ProcessKey(KEY_DOWN); | |
| 6365 | ||
| 6366 | CurLine->SetTabCurPos(pp->LinePos); | |
| 6367 | ||
| 6368 | Unlock (); | |
| 6369 | } | |
| 6370 | ||
| 6371 | CurLine->SetLeftPos(pp->LeftPos); | |
| 6372 | ||
| 6373 | return; | |
| 6374 | } | |
| 6375 | ||
| 6337 | 6376 | if ( pp->ScreenLine > ObjHeight)//ScrY //BUGBUG |
| 6338 | 6377 | pp->ScreenLine=ObjHeight;//ScrY; |
| 6339 | 6378 |