Skip to content

Commit

Permalink
Fixed multi-line paste on mac
Browse files Browse the repository at this point in the history
  • Loading branch information
aardappel committed Dec 10, 2022
1 parent bcea80e commit 9ef911a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/tools.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,16 @@ typedef unsigned int uint;
if (v < (s)) v = (s); \
}

// Use the same on all platforms, because:
// Win32: usually contains both.
// Macos: older versions use \r and newer \n in clipboard?
// Linux: should only ever be \n but if we encounter \r we want to strip it.
#define LINE_SEPERATOR L"\r\n"

#ifdef WIN32
#define PATH_SEPERATOR L"\\"
#define LINE_SEPERATOR L"\r\n"
#else
#define PATH_SEPERATOR L"/"
#ifdef __WXMAC__
#define LINE_SEPERATOR L"\r"
#else
#define LINE_SEPERATOR L"\n"
#endif
#define __cdecl
#define _vsnprintf vsnprintf
#endif
Expand Down

0 comments on commit 9ef911a

Please sign in to comment.