patches: fix singleLineMove compile error - out-of-scope variables

oldLine and newLine were declared inside 'if (cachedText && oldPoint > 0)'
block but singleLineMove block referenced them from outside that scope.

Fix: declare singleLineMove = NO before the granularity detection block;
compute adjFwd/adjBwd inside the 'if (oldLine.location != newLine.location)'
branch where both variables are in scope.
This commit is contained in:
2026-03-02 21:13:20 +01:00
parent d6fc21f975
commit ce34c44c2f
9 changed files with 47 additions and 36 deletions

View File

@@ -1,4 +1,4 @@
From 1465c5f3ad2ddec5a89329de34d871207626b078 Mon Sep 17 00:00:00 2001
From 195c2d4ccc1d607984468fa7f9a8e41005463f04 Mon Sep 17 00:00:00 2001
From: Martin Sukany <martin@sukany.cz>
Date: Sat, 28 Feb 2026 12:58:11 +0100
Subject: [PATCH 1/8] ns: add accessibility base classes and text extraction