Skip to content

Commit

Permalink
skip empty history file line (#3184)
Browse files Browse the repository at this point in the history
  • Loading branch information
neeraj9 committed Apr 4, 2024
1 parent 1aaa21f commit b3c6dc9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/shell/linenoise.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2350,6 +2350,8 @@ int linenoiseHistoryLoad(const char* filename) {
// add the full line to the history
linenoiseHistoryAdd(buf);
continue;
} else if (result.empty() && buf[0] == '\0') {
continue;
}
// else we are parsing a Cypher statement
result += buf;
Expand Down

0 comments on commit b3c6dc9

Please sign in to comment.