KeyHandler // Optimize popOverflowComposingTextAndWalk().
This commit is contained in:
parent
c0dde5d633
commit
4d010e9fc7
|
@ -140,7 +140,7 @@ class KeyHandler {
|
||||||
|
|
||||||
var poppedText = ""
|
var poppedText = ""
|
||||||
if _builder.grid.width > mgrPrefs.composingBufferSize {
|
if _builder.grid.width > mgrPrefs.composingBufferSize {
|
||||||
if _walkedNodes.count > 0 {
|
if !_walkedNodes.isEmpty {
|
||||||
let anchor: Megrez.NodeAnchor = _walkedNodes[0]
|
let anchor: Megrez.NodeAnchor = _walkedNodes[0]
|
||||||
if let theNode = anchor.node {
|
if let theNode = anchor.node {
|
||||||
poppedText = theNode.currentKeyValue.value
|
poppedText = theNode.currentKeyValue.value
|
||||||
|
|
Loading…
Reference in New Issue