/// not the current buffer
void gotoBookmark(unsigned int idx, bool openFile, bool switchToBuffer);
- /// load a buffer into the current workarea.
- Buffer * loadAndViewFile(support::FileName const & name, ///< File to load.
- bool tolastfiles = true); ///< append to the "Open recent" menu?
+ /// cursor x position before dispatch started
+ int cursorBeforeDispatchX() const {
+ return cursorPosBeforeDispatchX_;
+ }
+ /// cursor y position before dispatch started
+ int cursorBeforeDispatchY() const {
+ return cursorPosBeforeDispatchY_;
+ }
private:
///
///
KeyModifier meta_fake_bit;
+ /// cursor position before dispatch started
+ int cursorPosBeforeDispatchX_;
+ int cursorPosBeforeDispatchY_;
+
/// Error status, only Dispatch can change this flag
mutable bool errorstat;
void sendDispatchMessage(docstring const & msg,
FuncRequest const & ev);
- ///
- void open(std::string const &);
- ///
- void doImport(std::string const &);
///
void closeBuffer();
///