Browse Source

Fixed SD2-1072. The caret position is validated when the TextAreaControl is entered.

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/2.1@2298 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Matt Ward 19 years ago
parent
commit
aaec0f764a
  1. 8
      src/Libraries/ICSharpCode.TextEditor/Project/Src/Gui/TextAreaControl.cs

8
src/Libraries/ICSharpCode.TextEditor/Project/Src/Gui/TextAreaControl.cs

@ -442,5 +442,13 @@ namespace ICSharpCode.TextEditor @@ -442,5 +442,13 @@ namespace ICSharpCode.TextEditor
}
base.WndProc(ref m);
}
protected override void OnEnter(EventArgs e)
{
// SD2-1072 - Make sure the caret line is valid if anyone
// has handlers for the Enter event.
Caret.ValidateCaretPos();
base.OnEnter(e);
}
}
}

Loading…
Cancel
Save