1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-11-28 05:36:31 +03:00

made progress detection optional - fixes #3472

This commit is contained in:
Eugene Pankov 2021-03-13 21:38:03 +01:00
parent 864932d663
commit e42bd11725
No known key found for this signature in database
GPG Key ID: 5896FCBBDD1CF4F4
2 changed files with 2 additions and 1 deletions

View File

@ -330,7 +330,7 @@ export class BaseTerminalTabComponent extends BaseTabComponent implements OnInit
}
const percentageMatch = /(^|[^\d])(\d+(\.\d+)?)%([^\d]|$)/.exec(data)
if (!this.alternateScreenActive && percentageMatch) {
if (!this.alternateScreenActive && percentageMatch && this.config.store.terminal.detectProgress) {
const percentage = percentageMatch[3] ? parseFloat(percentageMatch[2]) : parseInt(percentageMatch[2])
if (percentage > 0 && percentage <= 100) {
this.setProgress(percentage)

View File

@ -74,6 +74,7 @@ export class TerminalConfigProvider extends ConfigProvider {
wholeWord: false,
caseSensitive: false,
},
detectProgress: true,
},
}