Skip to content

Commit

Permalink
Fixed incorrect paste from clipboard
Browse files Browse the repository at this point in the history
  • Loading branch information
Xottab-DUTY committed Jun 30, 2019
1 parent 5d31639 commit 9ece7e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xrCore/os_clipboard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ void os_clipboard::paste_from_clipboard(pstr buffer, size_t buffer_size)
for (size_t i = 0; i < length; ++i)
{
const char c = buffer[i];
if (std::isalpha(c, locale) == 0 && c != char(-1) || c == '\t' || c == '\n') // "я" = -1
if (std::isprint(c, locale) == 0 && c != char(-1) || c == '\t' || c == '\n') // "я" = -1
{
buffer[i] = ' ';
}
Expand Down

0 comments on commit 9ece7e7

Please sign in to comment.