File tree 2 files changed +2
-2
lines changed 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -543,7 +543,7 @@ impl Menu for ColumnarMenu {
543
543
// editing a multiline buffer.
544
544
// Also, by replacing the new line character with a space, the insert
545
545
// position is maintain in the line buffer.
546
- let trimmed_buffer = editor. get_buffer ( ) . replace ( '\n' , " " ) ;
546
+ let trimmed_buffer = editor. get_buffer ( ) . replace ( " \r \n " , " " ) . replace ( '\n' , " " ) ;
547
547
completer. complete (
548
548
& trimmed_buffer[ ..editor. insertion_point ( ) ] ,
549
549
editor. insertion_point ( ) ,
Original file line number Diff line number Diff line change @@ -679,7 +679,7 @@ impl Menu for IdeMenu {
679
679
// editing a multiline buffer.
680
680
// Also, by replacing the new line character with a space, the insert
681
681
// position is maintain in the line buffer.
682
- let trimmed_buffer = editor. get_buffer ( ) . replace ( '\n' , " " ) ;
682
+ let trimmed_buffer = editor. get_buffer ( ) . replace ( " \r \n " , " " ) . replace ( '\n' , " " ) ;
683
683
completer. complete (
684
684
& trimmed_buffer[ ..editor. insertion_point ( ) ] ,
685
685
editor. insertion_point ( ) ,
You can’t perform that action at this time.
0 commit comments