Some amelioration of the redrawing
This commit is contained in:
parent
85806b2638
commit
eff5e3ae25
@ -408,6 +408,10 @@ void BufferText::MouseEvent(int32_t width, int32_t height)
|
|||||||
m_cursorPreferredCol = posX;
|
m_cursorPreferredCol = posX;
|
||||||
}
|
}
|
||||||
m_EdnBuf.Unselect(SELECTION_PRIMARY);
|
m_EdnBuf.Unselect(SELECTION_PRIMARY);
|
||||||
|
/*
|
||||||
|
// for the redraw to permit to remove display error ...
|
||||||
|
AnchorForceRedrawAll();
|
||||||
|
*/
|
||||||
|
|
||||||
UpdateWindowsPosition();
|
UpdateWindowsPosition();
|
||||||
}
|
}
|
||||||
@ -502,6 +506,8 @@ void BufferText::RemoveLine(void)
|
|||||||
int32_t start = m_EdnBuf.StartOfLine(m_cursorPos);
|
int32_t start = m_EdnBuf.StartOfLine(m_cursorPos);
|
||||||
int32_t stop = m_EdnBuf.EndOfLine(m_cursorPos);
|
int32_t stop = m_EdnBuf.EndOfLine(m_cursorPos);
|
||||||
m_EdnBuf.Remove(start, stop+1);
|
m_EdnBuf.Remove(start, stop+1);
|
||||||
|
// for the redraw to permit to remove display error ...
|
||||||
|
AnchorForceRedrawAll();
|
||||||
SetInsertPosition(start);
|
SetInsertPosition(start);
|
||||||
SetModify(true);
|
SetModify(true);
|
||||||
}
|
}
|
||||||
@ -517,6 +523,7 @@ void BufferText::SelectAll(void)
|
|||||||
void BufferText::SelectNone(void)
|
void BufferText::SelectNone(void)
|
||||||
{
|
{
|
||||||
m_EdnBuf.Unselect(SELECTION_PRIMARY);
|
m_EdnBuf.Unselect(SELECTION_PRIMARY);
|
||||||
|
// for the redraw to permit to remove display error ...
|
||||||
AnchorForceRedrawAll();
|
AnchorForceRedrawAll();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1049,6 +1056,8 @@ void BufferText::JumpAtLine(int32_t newLine)
|
|||||||
{
|
{
|
||||||
int32_t positionLine = m_EdnBuf.CountForwardNLines(0, newLine);
|
int32_t positionLine = m_EdnBuf.CountForwardNLines(0, newLine);
|
||||||
m_EdnBuf.Unselect(SELECTION_PRIMARY);
|
m_EdnBuf.Unselect(SELECTION_PRIMARY);
|
||||||
|
// for the redraw to permit to remove display error ...
|
||||||
|
AnchorForceRedrawAll();
|
||||||
EDN_DEBUG("jump at the line : " << newLine );
|
EDN_DEBUG("jump at the line : " << newLine );
|
||||||
SetInsertPosition(positionLine);
|
SetInsertPosition(positionLine);
|
||||||
UpdateWindowsPosition(true);
|
UpdateWindowsPosition(true);
|
||||||
@ -1214,6 +1223,8 @@ void BufferText::Cut(int8_t clipboardID)
|
|||||||
m_EdnBuf.RemoveSelected(SELECTION_PRIMARY);
|
m_EdnBuf.RemoveSelected(SELECTION_PRIMARY);
|
||||||
SetInsertPosition(SelectionStart, true);
|
SetInsertPosition(SelectionStart, true);
|
||||||
}
|
}
|
||||||
|
// for the redraw to permit to remove display error ...
|
||||||
|
AnchorForceRedrawAll();
|
||||||
UpdateWindowsPosition();
|
UpdateWindowsPosition();
|
||||||
SetModify(true);
|
SetModify(true);
|
||||||
}
|
}
|
||||||
@ -1244,9 +1255,10 @@ void BufferText::Paste(int8_t clipboardID)
|
|||||||
} else {
|
} else {
|
||||||
// insert data
|
// insert data
|
||||||
m_EdnBuf.Insert(m_cursorPos, mVect);
|
m_EdnBuf.Insert(m_cursorPos, mVect);
|
||||||
SetInsertPosition(mVect.Size(), true);
|
SetInsertPosition(m_cursorPos + mVect.Size(), true);
|
||||||
}
|
}
|
||||||
|
// for the redraw to permit to remove display error ...
|
||||||
|
AnchorForceRedrawAll();
|
||||||
UpdateWindowsPosition();
|
UpdateWindowsPosition();
|
||||||
SetModify(true);
|
SetModify(true);
|
||||||
}
|
}
|
||||||
@ -1260,6 +1272,8 @@ void BufferText::Undo(void)
|
|||||||
UpdateWindowsPosition();
|
UpdateWindowsPosition();
|
||||||
SetModify(true);
|
SetModify(true);
|
||||||
}
|
}
|
||||||
|
// for the redraw to permit to remove display error ...
|
||||||
|
AnchorForceRedrawAll();
|
||||||
}
|
}
|
||||||
|
|
||||||
void BufferText::Redo(void)
|
void BufferText::Redo(void)
|
||||||
@ -1270,6 +1284,8 @@ void BufferText::Redo(void)
|
|||||||
UpdateWindowsPosition();
|
UpdateWindowsPosition();
|
||||||
SetModify(true);
|
SetModify(true);
|
||||||
}
|
}
|
||||||
|
// for the redraw to permit to remove display error ...
|
||||||
|
AnchorForceRedrawAll();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user