diff --git a/src/JessMain.hpp b/src/JessMain.hpp index e3848d8..e6aef0b 100644 --- a/src/JessMain.hpp +++ b/src/JessMain.hpp @@ -13,14 +13,14 @@ namespace jess { class JessMain { - jess::NcTerminal m_rootTerminal{}; - jess::NcWindow m_rootWindow = m_rootTerminal.rootWindow(); - jess::Modeline m_modeline{m_rootWindow}; - jess::MainFrame m_mainFrame{m_rootWindow}; + NcTerminal m_rootTerminal{}; + NcWindow m_rootWindow = m_rootTerminal.rootWindow(); + Modeline m_modeline{ m_rootWindow }; + MainFrame m_mainFrame{m_rootWindow}; std::string m_currentCursor{}; bool m_bModelineActive{}; std::span m_currentLines{}; - jess::ChunkedJournal m_journal{}; + ChunkedJournal m_journal{1024, 0}; public: KeyCombination getNextKey() { return m_modeline.getKeyCombination().value(); } diff --git a/src/main.cpp b/src/main.cpp index be5b07a..da7133f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -14,6 +14,9 @@ void run() { using jess::meta; using key = jess::KeyCombination; + // for now, let's start at the top + main.scrollToBof(); + bool bContinue = true; while (bContinue) { diff --git a/test/ChunkedJournal_test.cpp b/test/ChunkedJournal_test.cpp index 979d6c2..8c27308 100644 --- a/test/ChunkedJournal_test.cpp +++ b/test/ChunkedJournal_test.cpp @@ -261,5 +261,3 @@ TEST_CASE( "ChunkedJournal(1) load EOF" ) } } } - -// todo: check skipping a chunk