Skip to content

Commit

Permalink
Position 0 invalid
Browse files Browse the repository at this point in the history
  • Loading branch information
Zukaritasu committed Dec 16, 2023
1 parent 99f4f94 commit 585eb44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vstudio/src/PresenceTextFormat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ void PresenceTextFormat::LoadEditorStatus() noexcept
lang_name[0] = (char)std::toupper(lang_name[0]);
props[7] = lang_name; // first letter in upper case
props[8] = GetStringCase(lang_name, true); // upper case
props[9] = ::SendMessage(hWnd, SCI_GETCURRENTPOS, 0, 0);
props[9] = ::SendMessage(hWnd, SCI_GETCURRENTPOS, 0, 0) + 1;
}

void PresenceTextFormat::WriteFormat(char* buffer, const char* format) noexcept
Expand Down

0 comments on commit 585eb44

Please sign in to comment.