Skip to content

Commit

Permalink
1. Копирование текста из полей ввода могло вызывать ассерты.
Browse files Browse the repository at this point in the history
  • Loading branch information
alabuzhev committed Mar 21, 2015
1 parent 345e2d4 commit f66018f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions far/edit.cpp
Expand Up @@ -1267,10 +1267,7 @@ int Edit::ProcessKey(const Manager::Key& Key)
}
else if (m_SelEnd <= m_Str.size()) // TODO: åñëè â íà÷àëî óñëîâèÿ äîáàâèòü "StrSize &&", òî ïðîïàäåò áàã "Ctrl-Ins â ïóñòîé ñòðîêå î÷èùàåò êëèïáîðä"
{
int Ch=m_Str[m_SelEnd];
m_Str[m_SelEnd]=0;
SetClipboard(m_Str.data() + m_SelStart);
m_Str[m_SelEnd]=Ch;
SetClipboard(string(m_Str.cbegin() + m_SelStart, m_Str.cbegin() + m_SelEnd));
}
}

Expand Down
2 changes: 1 addition & 1 deletion far/vbuild.m4
@@ -1 +1 @@
m4_define(BUILD,4322)m4_dnl
m4_define(BUILD,4323)m4_dnl

0 comments on commit f66018f

Please sign in to comment.