mirror of
https://github.com/mawww/kakoune.git
synced 2024-12-20 10:01:57 +03:00
24 lines
411 B
C++
24 lines
411 B
C++
|
#ifndef context_hh_INCLUDED
|
||
|
#define context_hh_INCLUDED
|
||
|
|
||
|
#include "window.hh"
|
||
|
|
||
|
namespace Kakoune
|
||
|
{
|
||
|
|
||
|
struct Context
|
||
|
{
|
||
|
Window* window;
|
||
|
Buffer* buffer;
|
||
|
|
||
|
Context()
|
||
|
: window(nullptr), buffer(nullptr) {}
|
||
|
Context(Window& window)
|
||
|
: window(&window), buffer(&window.buffer()) {}
|
||
|
Context(Buffer& buffer)
|
||
|
: window(nullptr), buffer(&buffer) {}
|
||
|
};
|
||
|
|
||
|
}
|
||
|
#endif // context_hh_INCLUDED
|