Skip to content

Commit bfe766f

Browse files
committed
fix emoji ending on the line when syntax highlighting is enabled
1 parent 2ee2f80 commit bfe766f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

QCodeEditor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def __init__(self, parent, lang):
5555
def highlightBlock(self, text):
5656
cb = self.currentBlock()
5757
p = cb.position()
58-
text=self.document().toPlainText()
58+
text=self.document().toPlainText()+'\n'
5959
highlight(text,self.lexer,self.formatter)
6060

6161
#dirty, dirty hack

0 commit comments

Comments
 (0)