summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
426c567)
This addresses (and hopefully closes) #6171.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37058
a592a061-630c-0410-9148-
cb99ea01b6c8
#include "GuiView.h"
#include "GuiWorkArea.h"
#include "qt_helpers.h"
#include "GuiView.h"
#include "GuiWorkArea.h"
#include "qt_helpers.h"
#include "buffer_funcs.h"
#include "BufferParams.h"
#include "buffer_funcs.h"
#include "BufferParams.h"
LYXERR(Debug::FIND, "Applying document params to replace buffer");
ApplyParams(replace_buf, doc_bp);
LYXERR(Debug::FIND, "Applying document params to replace buffer");
ApplyParams(replace_buf, doc_bp);
+ string lang = doc_bp.language->lang();
+ LYXERR(Debug::FIND, "Setting current editing language to " << lang << endl);
+ FuncRequest cmd(LFUN_LANGUAGE, lang);
+ find_buf.text().dispatch(find_work_area_->bufferView().cursor(), cmd);
+ replace_buf.text().dispatch(replace_work_area_->bufferView().cursor(), cmd);
+
view_.setCurrentWorkArea(find_work_area_);
LYXERR(Debug::FIND, "Selecting entire find buffer");
dispatch(FuncRequest(LFUN_BUFFER_BEGIN));
view_.setCurrentWorkArea(find_work_area_);
LYXERR(Debug::FIND, "Selecting entire find buffer");
dispatch(FuncRequest(LFUN_BUFFER_BEGIN));