Merge pull request #20000 from taosdata/fix/TS-2658-MAIN

fix: parse multi-line sql include tab key
This commit is contained in:
dapan1121 2023-02-16 10:32:50 +08:00 committed by GitHub
commit 62a626079a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 3 deletions

View File

@ -1735,10 +1735,12 @@ _return:
// main key press tab
void pressTabKey(SShellCmd* cmd) {
// check
// check empty tab key
if (cmd->commandSize == 0) {
// empty
showHelp();
// have multi line tab key
if(cmd->bufferSize == 0) {
showHelp();
}
shellShowOnScreen(cmd);
return;
}