fluentCODE / ScrawlIssues

Issue Tracker for Scrawl by fluentCODE
14 stars 0 forks source link

Crash after using multicursors and trying to replace a selection #123

Closed dpen2000 closed 9 years ago

dpen2000 commented 9 years ago
  1. Place one cursor
  2. Place second cursor with alt-click
  3. Use Shift arrow keys to expand selection
  4. Type a character. Scrawl crashes with:
Description: The process was terminated due to an unhandled exception.
Exception Info: System.ArgumentOutOfRangeException
Stack:
   at System.ThrowHelper.ThrowArgumentOutOfRangeException(System.ExceptionArgument, System.ExceptionResource)
   at Scrawl.Editor.Models.Selection.DeleteSelectionMultiLine(Scrawl.Common.CodeEngine.ChangeRequest, Scrawl.Common.CodeEngine.ChangeRequest)
   at Scrawl.Editor.Models.Selection+<>c__DisplayClass38_0.<Delete>b__0(Scrawl.Editor.Models.Document)
   at Scrawl.Editor.UndoRedoManager.Do(Scrawl.Editor.UndoRedoCommand, Boolean)
   at Scrawl.Editor.Models.Selection.Delete(Boolean)
   at Scrawl.Editor.DocumentManager.ClearAndDeleteSelections()
   at Scrawl.Editor.Controls.EditorControl.Editor_KeyDown(System.Object, Eto.Forms.KeyEventArgs)
   at Eto.PropertyStore.TriggerEvent[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]](System.Object, System.Object, System.__Canon)
   at Eto.Forms.Control.OnKeyDown(Eto.Forms.KeyEventArgs)
   at Eto.Forms.Control+Callback+<>c__DisplayClass0.<OnKeyDown>b__1()
   at Eto.Platform.Invoke(System.Action)
   at Eto.Forms.Control+Callback.OnKeyDown(Eto.Forms.Control, Eto.Forms.KeyEventArgs)
   at Eto.WinForms.Forms.ApplicationHandler+<>c__DisplayClass0.<SetOptions>b__23(Eto.Forms.Control, ICallback, Eto.Forms.KeyEventArgs)
   at Eto.WinForms.BubbleEventFilter.KeyCharEvent(Eto.WinForms.BubbleEventArgs, System.Action`3<Eto.Forms.Control,ICallback,Eto.Forms.KeyEventArgs>, Eto.Forms.KeyEventType)
   at Eto.WinForms.BubbleEventFilter+<>c__DisplayClass2.<AddBubbleKeyCharEvent>b__3(Eto.WinForms.BubbleEventArgs)
   at Eto.WinForms.BubbleEventFilter.PreFilterMessage(System.Windows.Forms.Message ByRef)
   at System.Windows.Forms.Application+ThreadContext.ProcessFilters(MSG ByRef, Boolean ByRef)
   at System.Windows.Forms.Application+ThreadContext.PreTranslateMessage(MSG ByRef)
   at System.Windows.Forms.Application+ThreadContext.System.Windows.Forms.UnsafeNativeMethods.IMsoComponent.FPreTranslateMessage(MSG ByRef)
   at System.Windows.Forms.Application+ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr, Int32, Int32)
   at System.Windows.Forms.Application+ThreadContext.RunMessageLoopInner(Int32, System.Windows.Forms.ApplicationContext)
   at System.Windows.Forms.Application+ThreadContext.RunMessageLoop(Int32, System.Windows.Forms.ApplicationContext)
   at System.Windows.Forms.Application.Run(System.Windows.Forms.Form)
   at Eto.WinForms.Forms.ApplicationHandler.Run()
   at Eto.Forms.Application.Run(Eto.Forms.Form)
   at Scrawl.App.Windows.Program.Main(System.String[])

Gif: multicursorselectionissue