Skip to content

Commit 358db99

Browse files
Minor updates to syntax (#96)
* Update editor.h Otherwise, compiling with header-only gives: `gui/zep/include/zep/editor.h:439:51: error: copying member subobject of type 'std::atomic<bool>' invokes deleted constructor mutable std::atomic<bool> m_bPendingRefresh = true;` * Update filesystem.cpp * Create app_config.h * updated conditional filesystem sourcing syntax for apple
1 parent 64c74a5 commit 358db99

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

app_config.h

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

include/zep/editor.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ class ZepEditor
436436
tBuffers m_buffers;
437437
uint32_t m_flags = 0;
438438

439-
mutable std::atomic_bool m_bPendingRefresh = true;
439+
mutable std::atomic_bool m_bPendingRefresh = { true };
440440
mutable bool m_lastCursorBlink = false;
441441

442442
std::vector<std::string> m_commandLines; // Command information, shown under the buffer

src/filesystem.cpp

+6-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,12 @@
1111
#if defined(ZEP_FEATURE_CPP_FILE_SYSTEM)
1212

1313
#include <filesystem>
14-
namespace cpp_fs = std::filesystem;
14+
15+
#ifdef __APPLE__
16+
namespace cpp_fs = std::__fs::filesystem;
17+
#else
18+
namespace cpp_fs = std::filesystem;
19+
#endif
1520

1621
namespace Zep
1722
{

0 commit comments

Comments
 (0)