View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0002577 | Far Manager | Editor | public | 2014-01-25 08:40 | 2014-02-08 11:33 |
Reporter | Aidar | Assigned To | DrKnS | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | x64 | OS | Windows | OS Version | 7 |
Product Version | 3.0 | ||||
Fixed in Version | 3.0 | ||||
Summary | 0002577: Не работает сдвиг блока для строки с одним символом | ||||
Description | Неправильно работает сдвиг блока (AltI), если в строке только один символ: сдвигается не символ, а курсор. | ||||
Additional Information | Проверялось на: FAR 3.0 3627 x86 FAR 3.0 3784 x86 | ||||
Tags | No tags attached. | ||||
Build | 3800 | ||||
|
Обсуждение на форуме (Aidar): http://forum.farmanager.com/viewtopic.php?f=9&t=3074&sid=b01abd647a4d1ed92e1e9b3e709632a8#p116128 |
|
Вроде так, нет компилятора проверить: >svn diff Index: editor.cpp =================================================================== --- editor.cpp (revision 11415) +++ editor.cpp (working copy) @@ -5317,7 +5317,7 @@ AddUndoData(UNDO_EDIT,CurStr,CurPtr->GetEOL(),LineNum,0,CurPtr->GetLength()); // EOL? - CurLine->GetEOL() GlobalEOL "" int CurPos=CurPtr->GetCurPos(); - if (Length>1) + if (Length>0) CurPtr->SetBinaryString(TmpStr.data(), static_cast<int>(TmpStr.size())); CurPtr->SetCurPos(CurPos+1); |
|
Проверил, что это сломалось в билде 3662. |
|
3800 |
|
Исправлено (Far30b3800.x86.20140208). |
Date Modified | Username | Field | Change |
---|---|---|---|
2014-01-25 08:40 | Aidar | New Issue | |
2014-01-25 08:41 | Aidar | Note Added: 0011778 | |
2014-02-06 12:43 | alexy | Note Added: 0011819 | |
2014-02-08 07:34 | shmuel | Assigned To | => DrKnS |
2014-02-08 07:34 | shmuel | Status | new => assigned |
2014-02-08 07:34 | shmuel | Note Added: 0011820 | |
2014-02-08 10:44 | DrKnS | Note Added: 0011821 | |
2014-02-08 10:44 | DrKnS | Status | assigned => feedback |
2014-02-08 11:31 | Aidar | Note Added: 0011822 | |
2014-02-08 11:31 | Aidar | Status | feedback => assigned |
2014-02-08 11:31 | Aidar | Status | assigned => resolved |
2014-02-08 11:33 | DrKnS | Build | => 3800 |
2014-02-08 11:33 | DrKnS | Status | resolved => closed |
2014-02-08 11:33 | DrKnS | Resolution | open => fixed |
2014-02-08 11:33 | DrKnS | Fixed in Version | => 3.0 |