Browse Source

limit max text shown in paste warning

Eugene Pankov 3 years ago
parent
commit
53f3962640
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tabby-terminal/src/api/baseTerminalTab.component.ts

+ 1 - 1
tabby-terminal/src/api/baseTerminalTab.component.ts

@@ -462,7 +462,7 @@ export class BaseTerminalTabComponent extends BaseTabComponent implements OnInit
                 const result = (await this.platform.showMessageBox(
                     {
                         type: 'warning',
-                        detail: data,
+                        detail: data.slice(0, 1000),
                         message: this.translate.instant('Paste multiple lines?'),
                         buttons,
                         defaultId: 0,