nomenclature of space corection

This commit is contained in:
Edouard Dupin 2012-05-13 21:27:50 +02:00
parent e5a06889b6
commit d19586c4d8

View File

@ -695,13 +695,13 @@ void BufferText::SetInsertPosition(int32_t newPos, bool insertChar)
return; return;
} }
if( false == haveSelectionActive if( false == haveSelectionActive
&& true == ewol::IsSetShift() ) && true == ewol::IsSetShift() )
{ {
// new selection // new selection
m_EdnBuf.Select(SELECTION_PRIMARY, rememberCursorPos, m_cursorPos); m_EdnBuf.Select(SELECTION_PRIMARY, rememberCursorPos, m_cursorPos);
} else if( true == ewol::IsSetShift() } else if( true == ewol::IsSetShift()
&& true == haveSelectionActive) && true == haveSelectionActive)
{ {
// update selection // update selection
if (rememberCursorPos == SelectionStart) { if (rememberCursorPos == SelectionStart) {