This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch csi-parser-false-positive
in repository terminology.

View the commit online.

commit de9d5c605965ab31675cb09df4202650049dd2c7
Author: Johannes Altmanninger <aclo...@gmail.com>
AuthorDate: Tue Mar 4 08:34:12 2025 +0100

    fix
---
 data/test_offscale.edj | Bin 0 -> 6346 bytes
 src/bin/termptyesc.c   |  13 +++++++++++--
 2 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/data/test_offscale.edj b/data/test_offscale.edj
new file mode 100644
index 00000000..bcb53a19
Binary files /dev/null and b/data/test_offscale.edj differ
diff --git a/src/bin/termptyesc.c b/src/bin/termptyesc.c
index 018deda6..ae04ecce 100644
--- a/src/bin/termptyesc.c
+++ b/src/bin/termptyesc.c
@@ -3623,8 +3623,17 @@ _handle_esc_csi(Termpty *ty, const Eina_Unicode *c, const Eina_Unicode *ce)
              _handle_window_manipulation(ty, &b);
           }
         break;
-      case 'u': // restore cursor pos
-        termpty_cursor_copy(ty, EINA_FALSE);
+      case 'u':
+        if (cc == c)
+        {
+            // No parameter. Restore cursor pos
+            termpty_cursor_copy(ty, EINA_FALSE);
+        }
+        else
+          {
+             ERR("unhandled 'u' CSI escape code");
+             ty->decoding_error = EINA_TRUE;
+          }
         break;
       case 'v':
         if (*(cc-1) == '$')

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to