- fix: crash when editing txt file and input symbol at the beginning of a line
This commit is contained in:
parent
65b328396c
commit
7d86c6e5b1
1
NEWS.md
1
NEWS.md
|
@ -5,6 +5,7 @@ Red Panda C++ Version 1.0.3
|
|||
- enhancement: shift+ctrl+down/up to move currenlt selection lines up / down
|
||||
- fix: can't compile under linux
|
||||
- enhancement: support Devcie Pixel Ratio ( for linux )
|
||||
- fix: crash when editing txt file and input symbol at the beginning of a line
|
||||
|
||||
Red Panda C++ Version 1.0.2
|
||||
- enhancement: press tab in column mode won't exit column mode
|
||||
|
|
|
@ -2001,6 +2001,7 @@ bool Editor::handleSymbolCompletion(QChar key)
|
|||
return false;
|
||||
|
||||
//todo: better methods to detect current caret type
|
||||
if (highlighter()) {
|
||||
if (caretX() <= 1) {
|
||||
if (caretY()>1) {
|
||||
if (highlighter()->isLastLineCommentNotFinished(lines()->ranges(caretY() - 2).state))
|
||||
|
@ -2028,6 +2029,7 @@ bool Editor::handleSymbolCompletion(QChar key)
|
|||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Check if that line is highlighted as string or character or comment
|
||||
// if (Attr = fText.Highlighter.StringAttribute) or (Attr = fText.Highlighter.CommentAttribute) or SameStr(Attr.Name,
|
||||
|
|
Loading…
Reference in New Issue