mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 20:42:21 +02:00
Fixed enter-with-selection issue
This commit is contained in:
parent
df6ca9e9ed
commit
ce64d43b6a
1 changed files with 1 additions and 1 deletions
|
@ -3974,7 +3974,7 @@ namespace IDE.ui
|
||||||
prevChar = mData.mText[cursorTextPos - 1].mChar;
|
prevChar = mData.mText[cursorTextPos - 1].mChar;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (((keyChar == '\n') || (keyChar == '\r')) && (mIsMultiline) && (!CheckReadOnly()))
|
if (((keyChar == '\n') || (keyChar == '\r')) && (!HasSelection()) && (mIsMultiline) && (!CheckReadOnly()))
|
||||||
{
|
{
|
||||||
UndoBatchStart undoBatchStart = new UndoBatchStart("newline");
|
UndoBatchStart undoBatchStart = new UndoBatchStart("newline");
|
||||||
mData.mUndoManager.Add(undoBatchStart);
|
mData.mUndoManager.Add(undoBatchStart);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue