Editor: make --ts-version false disable version detection

This commit is contained in:
李通洲
2024-07-03 13:59:39 +08:00
parent 96e7f65902
commit 84540250f7
3 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -576,7 +576,7 @@
},
"tsVersion": {
"type": "boolean",
"description": "Whether to detect and display the version of terminal and shell. Mainly for benchmarking",
"description": "Whether to detect and display the version of terminal, shell and editor. Mainly for benchmarking",
"default": true
}
}
+1 -1
View File
@@ -728,7 +728,7 @@
},
{
"long": "ts-version",
"desc": "Whether to detect and display the version of terminal and shell",
"desc": "Whether to detect and display the version of terminal, shell and editor",
"remark": "Mainly for benchmarking",
"arg": {
"type": "bool",
+2
View File
@@ -26,6 +26,8 @@ const char* ffDetectEditor(FFEditorResult* result)
return "$VISUAL or $EDITOR not set";
}
if (!instance.config.display.tsVersion) return NULL;
#ifndef _WIN32
if (result->name.chars[0] != '/')
{