File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
app/src/main/java/io/neoterm/backend Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -2474,6 +2474,9 @@ private void setTitle(String newTitle) {
2474
2474
public void paste (String text ) {
2475
2475
// First: Always remove escape key and C1 control characters [0x80,0x9F]:
2476
2476
text = text .replaceAll ("(\u001B |[\u0080 -\u009F ])" , "" );
2477
+ // Second: Convert DOS (\r\n) CRLF newlines and linefeeds (\n) into carriage returns (\r==13).
2478
+ text = text .replaceAll ("\r ?\n " , "\r " );
2479
+
2477
2480
// Then: Implement bracketed paste mode if enabled:
2478
2481
boolean bracketed = isDecsetInternalBitSet (DECSET_BIT_BRACKETED_PASTE_MODE );
2479
2482
if (bracketed ) mSession .write ("\033 [200~" );
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ buildscript {
54
54
google()
55
55
}
56
56
dependencies {
57
- classpath ' com.android.tools.build:gradle:3.1.0 '
57
+ classpath ' com.android.tools.build:gradle:3.1.2 '
58
58
classpath rootProject. ext. deps[" kotlin-gradle-plugin" ]
59
59
60
60
// NOTE: Do not place your application dependencies here; they belong
You can’t perform that action at this time.
0 commit comments