count lines during scanning for triple quotes

This commit is contained in:
Axel Kohlmeyer
2023-08-25 21:17:31 -04:00
parent 568199e50d
commit 401133acec
2 changed files with 2 additions and 1 deletions

View File

@ -651,7 +651,7 @@ void lammps_commands_string(void *handle, const char *str)
// split buffer into lines, set line number, process continuation characters, and here docs
while (cursor < buffer.size()) {
++ nline;
++nline;
std::size_t start = cursor;
cursor = buffer.find('\n', start);
if (cursor != std::string::npos) {