Skip to content

Commit

Permalink
fix 4633
Browse files Browse the repository at this point in the history
  • Loading branch information
alabuzhev committed Apr 24, 2016
1 parent 3cccd1b commit 5dbf49c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions far/changelog
@@ -1,4 +1,8 @@

drkns 24.04.2016 11:15:15 +0200 - build 4637

1. Уточнение 4633.

drkns 24.04.2016 10:02:26 +0200 - build 4636

1. Уточнение 4635.
Expand Down
6 changes: 3 additions & 3 deletions far/editor.cpp
Expand Up @@ -4708,8 +4708,8 @@ void Editor::AddUndoData(int Type, const string& Str, const wchar_t *Eol, int St
if (StrNum==-1)
StrNum = m_it_CurLine.Number();

auto Iterator = UndoPos == UndoData.end()? UndoData.begin() : std::next(UndoPos);
for (auto End = UndoData.end(); Iterator != End; ++Iterator)
const auto Begin = UndoPos == UndoData.end()? UndoData.begin() : std::next(UndoPos);
for (auto Iterator = Begin, End = UndoData.end(); Iterator != End; ++Iterator)
{
if (Iterator == UndoSavePos)
{
Expand All @@ -4718,7 +4718,7 @@ void Editor::AddUndoData(int Type, const string& Str, const wchar_t *Eol, int St
break;
}
}
UndoData.erase(Iterator, UndoData.end());
UndoData.erase(Begin, UndoData.end());

auto PrevUndo=UndoData.end();
if(!UndoData.empty())
Expand Down
2 changes: 1 addition & 1 deletion far/vbuild.m4
@@ -1 +1 @@
m4_define(BUILD,4636)m4_dnl
m4_define(BUILD,4637)m4_dnl

0 comments on commit 5dbf49c

Please sign in to comment.