KeyHandler // Optimize popOverflowComposingTextAndWalk().

This commit is contained in:
ShikiSuen 2022-05-31 22:39:52 +08:00
parent c0dde5d633
commit 4d010e9fc7
1 changed files with 1 additions and 1 deletions

View File

@ -140,7 +140,7 @@ class KeyHandler {
var poppedText = ""
if _builder.grid.width > mgrPrefs.composingBufferSize {
if _walkedNodes.count > 0 {
if !_walkedNodes.isEmpty {
let anchor: Megrez.NodeAnchor = _walkedNodes[0]
if let theNode = anchor.node {
poppedText = theNode.currentKeyValue.value