Skip to content

Program crashes when encountering newline in Tmux #1

Description

@sorrell

When using tmux with a vertical split, InteractivePrompt crashes when the buffer runs over into a new line.

Unhandled Exception:                                                                                                  
System.ArgumentOutOfRangeException: Value must be positive and below the buffer height.                               
Parameter name: top                                                                                                   
  at System.TermInfoDriver.SetCursorPosition (Int32 left, Int32 top) <0x7f8248a78be0 + 0x00274> in <filename unknown>:
0                                                                                                                     
  at System.ConsoleDriver.SetCursorPosition (Int32 left, Int32 top) <0x7f8248a629c0 + 0x00048> in <filename unknown>:0
                                                                                                                      
  at System.Console.SetCursorPosition (Int32 left, Int32 top) <0x7f8248a61670 + 0x00011> in <filename unknown>:0      
  at Cintio.InteractivePrompt.RewriteLine (System.Collections.Generic.List`1 input, Int32 inputPosition) <0x41f634f0 +
 0x00127> in <filename unknown>:0                                                                                     
  at Cintio.InteractivePrompt.Run (System.Func`4 lambda, System.String prompt, System.String startupMsg, System.Collec
tions.Generic.List`1 completionList) <0x41f616b0 + 0x00dfb> in <filename unknown>:0                                   
  at ConsoleApplication3.Program.Main (System.String[] args) <0x41f24d50 + 0x00357> in <filename unknown>:0           
[ERROR] FATAL UNHANDLED EXCEPTION: System.ArgumentOutOfRangeException: Value must be positive and below the buffer hei
ght.                                                                                                                  
Parameter name: top                                                                                                   
  at System.TermInfoDriver.SetCursorPosition (Int32 left, Int32 top) <0x7f8248a78be0 + 0x00274> in <filename unknown>:
0                                                                                                                     
  at System.ConsoleDriver.SetCursorPosition (Int32 left, Int32 top) <0x7f8248a629c0 + 0x00048> in <filename unknown>:0
                                                                                                                      
  at System.Console.SetCursorPosition (Int32 left, Int32 top) <0x7f8248a61670 + 0x00011> in <filename unknown>:0      
  at Cintio.InteractivePrompt.RewriteLine (System.Collections.Generic.List`1 input, Int32 inputPosition) <0x41f634f0 +
 0x00127> in <filename unknown>:0                                                                                     
  at Cintio.InteractivePrompt.Run (System.Func`4 lambda, System.String prompt, System.String startupMsg, System.Collec                                      
tions.Generic.List`1 completionList) <0x41f616b0 + 0x00dfb> in <filename unknown>:0                                   
  at ConsoleApplication3.Program.Main (System.String[] args) <0x41f24d50 + 0x00357> in <filename unknown>:0  

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions