aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <>2021-01-13 12:59:20 +0000
committerdrh <>2021-01-13 12:59:20 +0000
commitaa556b0fa7ae3f96df773f20d86c51186be25f52 (patch)
treee713692d2fc425055b1f57fa57a99d905eb71be0 /src
parentb9366f8e3250eae8417a46396cefd082c2ab7a59 (diff)
downloadsqlite-aa556b0fa7ae3f96df773f20d86c51186be25f52.tar.gz
sqlite-aa556b0fa7ae3f96df773f20d86c51186be25f52.zip
cli: Omit surplus whitespace at the end of lines in .explain output.
FossilOrigin-Name: 11e4eb095746602961a178044809a68a77ba7b367596997bef726e54062423d9
Diffstat (limited to 'src')
-rw-r--r--src/shell.c.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shell.c.in b/src/shell.c.in
index 806ca2102..734a54546 100644
--- a/src/shell.c.in
+++ b/src/shell.c.in
@@ -2027,6 +2027,7 @@ static int shell_callback(
if( azArg==0 ) break;
for(i=0; i<nArg; i++){
int w = aExplainWidth[i];
+ if( i==nArg-1 ) w = 0;
if( azArg[i] && strlenChar(azArg[i])>w ){
w = strlenChar(azArg[i]);
}