Skip to content

Commit

Permalink
fix main executable compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
bastidest committed Nov 12, 2023
1 parent 5a312c1 commit f2979b7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
10 changes: 5 additions & 5 deletions src/JessMain.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<SdLine> m_currentLines{};
jess::ChunkedJournal m_journal{};
ChunkedJournal<SdJournal> m_journal{1024, 0};

public:
KeyCombination getNextKey() { return m_modeline.getKeyCombination().value(); }
Expand Down
3 changes: 3 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 0 additions & 2 deletions test/ChunkedJournal_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -261,5 +261,3 @@ TEST_CASE( "ChunkedJournal(1) load EOF" )
}
}
}

// todo: check skipping a chunk

0 comments on commit f2979b7

Please sign in to comment.