<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">diff -Naur gnome-chemistry-utils-0.14.17_orig/libs/gccv/text.cc gnome-chemistry-utils-0.14.17_mod/libs/gccv/text.cc
--- gnome-chemistry-utils-0.14.17_orig/libs/gccv/text.cc	2017-02-12 10:10:09.000000000 +0100
+++ gnome-chemistry-utils-0.14.17_mod/libs/gccv/text.cc	2024-09-02 22:58:57.724923903 +0200
@@ -1126,7 +1126,7 @@
 		if (event-&gt;state &amp; GDK_CONTROL_MASK) {
 			/* move to end of word */
 			char const* s = m_Text.c_str ();
-			char *p = g_utf8_next_char (s + m_CurPos);
+			char const* p = g_utf8_next_char (s + m_CurPos);
 			while (*p &amp;&amp; (!g_unichar_isgraph (g_utf8_get_char(p)) || g_unichar_ispunct (g_utf8_get_char(p))))
 				p = g_utf8_next_char (p);
 			while (g_unichar_isgraph (g_utf8_get_char(p)) &amp;&amp; !g_unichar_ispunct (g_utf8_get_char(p)))
@@ -1137,7 +1137,7 @@
 			Invalidate ();
 		} else {
 			char const* s = m_Text.c_str ();
-			char *p = g_utf8_next_char (s + m_CurPos);
+			char const* p = g_utf8_next_char (s + m_CurPos);
 			if (!p)
 				break;
 			m_CurPos = p - s;
@@ -1224,7 +1224,7 @@
 		if (m_CurPos == m_Text.length ())
 			break;
 		char const* s = m_Text.c_str ();
-		char *p = g_utf8_next_char (s + m_CurPos);
+		char const* p = g_utf8_next_char (s + m_CurPos);
 		int new_pos = p - s;
 		ReplaceText (empty_st, m_CurPos, new_pos - m_CurPos);
 		if (client)
</pre></body></html>