Skip to content

Commit

Permalink
Update source.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
letter-aa committed Nov 16, 2023
1 parent 031b2eb commit ed18ab4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions source.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -479,8 +479,10 @@ void elstext(vector<string> var) {
while (str != strv.end()) {
if (var[1] == str->first) {
cout << str->second;
int a = stringX::numOfStr(var[1], "\n");
for (int i = 0; i < a; i++) {
CONSOLE_SCREEN_BUFFER_INFO csbi;
GetConsoleScreenBufferInfo(GetStdHandle(STD_OUTPUT_HANDLE), &csbi);
line = csbi.dwCursorPosition.Y;
for (int i = 0; i < stringX::numOfStr(var[1], "\n"); i++) {
line++;
}
return;
Expand Down

0 comments on commit ed18ab4

Please sign in to comment.