- fix: makefile generated for static / dynamic library projects not right
correct processing for input in code template's place holders
This commit is contained in:
parent
ffb87fe66c
commit
8e4c20a2a3
2
NEWS.md
2
NEWS.md
|
@ -20,6 +20,8 @@ Version 0.6.0
|
|||
- enhancement: support #include_next (and clang libc++)
|
||||
- fix: hide popup windows when the editor is closed
|
||||
- enhancement: show pinyin when input chinese characters
|
||||
- fix: add mutex lock to prevent rare conditions when editor is modifying and the content is read
|
||||
- fix: makefile generated for static / dynamic library projects not right
|
||||
|
||||
Version 0.5.0
|
||||
- enhancement: support C++ using type alias;
|
||||
|
|
|
@ -49,7 +49,7 @@ void ProjectCompiler::createStaticMakeFile()
|
|||
{
|
||||
QFile file(mProject->makeFileName());
|
||||
newMakeFile(file);
|
||||
file.write("$(BIN): $(LINKOBJ)");
|
||||
writeln(file,"$(BIN): $(LINKOBJ)");
|
||||
if (!mOnlyCheckSyntax) {
|
||||
writeln(file,"\tar r $(BIN) $(LINKOBJ)");
|
||||
writeln(file,"\tranlib $(BIN)");
|
||||
|
@ -61,7 +61,7 @@ void ProjectCompiler::createDynamicMakeFile()
|
|||
{
|
||||
QFile file(mProject->makeFileName());
|
||||
newMakeFile(file);
|
||||
file.write("$(BIN): $(LINKOBJ)");
|
||||
writeln(file,"$(BIN): $(LINKOBJ)");
|
||||
if (!mOnlyCheckSyntax) {
|
||||
if (mProject->options().useGPP) {
|
||||
file.write("\t$(CPP) -mdll $(LINKOBJ) -o $(BIN) $(LIBS) -Wl,--output-def,$(DEF),--out-implib,$(STATIC)");
|
||||
|
|
|
@ -762,8 +762,8 @@ void Editor::onGetEditingAreas(int Line, SynEditingAreaList &areaList)
|
|||
p->type = SynEditingAreaType::eatRectangleBorder;
|
||||
// int spaceCount = leftSpaces(mLineBeforeTabStop);
|
||||
// int spaceBefore = mLineBeforeTabStop.length()-TrimLeft(mLineBeforeTabStop).length();
|
||||
p->beginX = charToColumn(Line,mTabStopBegin);
|
||||
p->endX = charToColumn(Line,mTabStopEnd) ;
|
||||
p->beginX = mTabStopBegin;
|
||||
p->endX = mTabStopEnd;
|
||||
p->color = highlighter()->stringAttribute()->foreground();
|
||||
areaList.append(p);
|
||||
}
|
||||
|
|
|
@ -971,7 +971,7 @@ void SynEditTextPainter::PaintLines()
|
|||
//Paint editingAreaBorders
|
||||
foreach (const PSynEditingArea& area, areaList) {
|
||||
if (bCurrentLine && edit->mInputPreeditString.length()>0) {
|
||||
if (area->beginX >= edit->mCaretX) {
|
||||
if (area->beginX > edit->mCaretX) {
|
||||
area->beginX+=edit->mInputPreeditString.length();
|
||||
}
|
||||
if (area->endX > edit->mCaretX) {
|
||||
|
|
Loading…
Reference in New Issue