Skip to content

Commit

Permalink
1. при определённых условиях позиция курсора в текущей строке после E…
Browse files Browse the repository at this point in the history
…CTL_DELETESTRING была неверной.
  • Loading branch information
zg0 committed May 18, 2016
1 parent 087cbea commit 6def6d7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 5 additions & 1 deletion far/changelog
@@ -1,4 +1,8 @@
drkns 17.05.2016 20:41:13 +0200 - build 4677
zg 18.05.2016 19:37:11 +0200 - build 4678

1. при определённых условиях позиция курсора в текущей строке после ECTL_DELETESTRING была неверной.

drkns 17.05.2016 20:41:13 +0200 - build 4677

1. Рефакторинг - добавим немного const.

Expand Down
2 changes: 2 additions & 0 deletions far/editor.cpp
Expand Up @@ -3022,7 +3022,9 @@ Editor::numbered_iterator Editor::DeleteString(numbered_iterator DelPtr, bool De
return DelPtr;
}

auto CurPos = m_it_CurLine->GetTabCurPos();
UpdateIterator(m_it_CurLine);
m_it_CurLine->SetTabCurPos(CurPos);
UpdateIterator(m_it_AnyBlockStart);
UpdateIterator(m_it_TopScreen);
UpdateIterator(m_it_LastGetLine);
Expand Down
2 changes: 1 addition & 1 deletion far/vbuild.m4
@@ -1 +1 @@
m4_define(BUILD,4677)m4_dnl
m4_define(BUILD,4678)m4_dnl

0 comments on commit 6def6d7

Please sign in to comment.