@@ -270,7 +270,7 @@ internal string InvokeLegacyReadLine(bool isCommandLine, CancellationToken cance
270
270
if ( completion != null )
271
271
{
272
272
currentCursorIndex =
273
- this . InsertInput (
273
+ InsertInput (
274
274
inputLine ,
275
275
promptStartCol ,
276
276
promptStartRow ,
@@ -288,7 +288,7 @@ internal string InvokeLegacyReadLine(bool isCommandLine, CancellationToken cance
288
288
if ( currentCursorIndex > 0 )
289
289
{
290
290
currentCursorIndex =
291
- this . MoveCursorToIndex (
291
+ MoveCursorToIndex (
292
292
promptStartCol ,
293
293
promptStartRow ,
294
294
consoleWidth ,
@@ -300,7 +300,7 @@ internal string InvokeLegacyReadLine(bool isCommandLine, CancellationToken cance
300
300
currentCompletion = null ;
301
301
302
302
currentCursorIndex =
303
- this . MoveCursorToIndex (
303
+ MoveCursorToIndex (
304
304
promptStartCol ,
305
305
promptStartRow ,
306
306
consoleWidth ,
@@ -313,7 +313,7 @@ internal string InvokeLegacyReadLine(bool isCommandLine, CancellationToken cance
313
313
if ( currentCursorIndex < inputLine . Length )
314
314
{
315
315
currentCursorIndex =
316
- this . MoveCursorToIndex (
316
+ MoveCursorToIndex (
317
317
promptStartCol ,
318
318
promptStartRow ,
319
319
consoleWidth ,
@@ -325,7 +325,7 @@ internal string InvokeLegacyReadLine(bool isCommandLine, CancellationToken cance
325
325
currentCompletion = null ;
326
326
327
327
currentCursorIndex =
328
- this . MoveCursorToIndex (
328
+ MoveCursorToIndex (
329
329
promptStartCol ,
330
330
promptStartRow ,
331
331
consoleWidth ,
@@ -359,7 +359,7 @@ internal string InvokeLegacyReadLine(bool isCommandLine, CancellationToken cance
359
359
historyIndex -- ;
360
360
361
361
currentCursorIndex =
362
- this . InsertInput (
362
+ InsertInput (
363
363
inputLine ,
364
364
promptStartCol ,
365
365
promptStartRow ,
@@ -384,7 +384,7 @@ internal string InvokeLegacyReadLine(bool isCommandLine, CancellationToken cance
384
384
if ( historyIndex < currentHistory . Count )
385
385
{
386
386
currentCursorIndex =
387
- this . InsertInput (
387
+ InsertInput (
388
388
inputLine ,
389
389
promptStartCol ,
390
390
promptStartRow ,
@@ -396,7 +396,7 @@ internal string InvokeLegacyReadLine(bool isCommandLine, CancellationToken cance
396
396
else if ( historyIndex == currentHistory . Count )
397
397
{
398
398
currentCursorIndex =
399
- this . InsertInput (
399
+ InsertInput (
400
400
inputLine ,
401
401
promptStartCol ,
402
402
promptStartRow ,
@@ -413,7 +413,7 @@ internal string InvokeLegacyReadLine(bool isCommandLine, CancellationToken cance
413
413
historyIndex = currentHistory != null ? currentHistory . Count : - 1 ;
414
414
415
415
currentCursorIndex =
416
- this . InsertInput (
416
+ InsertInput (
417
417
inputLine ,
418
418
promptStartCol ,
419
419
promptStartRow ,
@@ -429,7 +429,7 @@ internal string InvokeLegacyReadLine(bool isCommandLine, CancellationToken cance
429
429
if ( currentCursorIndex > 0 )
430
430
{
431
431
currentCursorIndex =
432
- this . InsertInput (
432
+ InsertInput (
433
433
inputLine ,
434
434
promptStartCol ,
435
435
promptStartRow ,
@@ -447,7 +447,7 @@ internal string InvokeLegacyReadLine(bool isCommandLine, CancellationToken cance
447
447
if ( currentCursorIndex < inputLine . Length )
448
448
{
449
449
currentCursorIndex =
450
- this . InsertInput (
450
+ InsertInput (
451
451
inputLine ,
452
452
promptStartCol ,
453
453
promptStartRow ,
@@ -488,7 +488,7 @@ internal string InvokeLegacyReadLine(bool isCommandLine, CancellationToken cance
488
488
currentCompletion = null ;
489
489
490
490
currentCursorIndex =
491
- this . InsertInput (
491
+ InsertInput (
492
492
inputLine ,
493
493
promptStartCol ,
494
494
promptStartRow ,
@@ -507,7 +507,7 @@ internal string InvokeLegacyReadLine(bool isCommandLine, CancellationToken cance
507
507
}
508
508
509
509
// TODO: Is this used?
510
- private int CalculateIndexFromCursor (
510
+ private static int CalculateIndexFromCursor (
511
511
int promptStartCol ,
512
512
int promptStartRow ,
513
513
int consoleWidth )
@@ -517,7 +517,7 @@ private int CalculateIndexFromCursor(
517
517
ConsoleProxy . GetCursorLeft ( ) - promptStartCol ;
518
518
}
519
519
520
- private void CalculateCursorFromIndex (
520
+ private static void CalculateCursorFromIndex (
521
521
int promptStartCol ,
522
522
int promptStartRow ,
523
523
int consoleWidth ,
@@ -530,7 +530,7 @@ private void CalculateCursorFromIndex(
530
530
cursorCol = cursorCol % consoleWidth ;
531
531
}
532
532
533
- private int InsertInput (
533
+ private static int InsertInput (
534
534
StringBuilder inputLine ,
535
535
int promptStartCol ,
536
536
int promptStartRow ,
@@ -549,7 +549,7 @@ private int InsertInput(
549
549
}
550
550
551
551
// Move the cursor to the new insertion point
552
- this . MoveCursorToIndex (
552
+ MoveCursorToIndex (
553
553
promptStartCol ,
554
554
promptStartRow ,
555
555
consoleWidth ,
@@ -598,7 +598,7 @@ private int InsertInput(
598
598
{
599
599
// Move the cursor to the final position
600
600
return
601
- this . MoveCursorToIndex (
601
+ MoveCursorToIndex (
602
602
promptStartCol ,
603
603
promptStartRow ,
604
604
consoleWidth ,
@@ -610,13 +610,13 @@ private int InsertInput(
610
610
}
611
611
}
612
612
613
- private int MoveCursorToIndex (
613
+ private static int MoveCursorToIndex (
614
614
int promptStartCol ,
615
615
int promptStartRow ,
616
616
int consoleWidth ,
617
617
int newCursorIndex )
618
618
{
619
- this . CalculateCursorFromIndex (
619
+ CalculateCursorFromIndex (
620
620
promptStartCol ,
621
621
promptStartRow ,
622
622
consoleWidth ,
0 commit comments