vte r2342 - in trunk: . src
- From: behdad svn gnome org
- To: svn-commits-list gnome org
- Subject: vte r2342 - in trunk: . src
- Date: Fri, 12 Dec 2008 09:22:06 +0000 (UTC)
Author: behdad
Date: Fri Dec 12 09:22:06 2008
New Revision: 2342
URL: http://svn.gnome.org/viewvc/vte?rev=2342&view=rev
Log:
Minor.
Modified:
trunk/ChangeLog
trunk/src/vte.c
trunk/src/vteunistr.c
trunk/src/vteunistr.h
Modified: trunk/src/vte.c
==============================================================================
--- trunk/src/vte.c (original)
+++ trunk/src/vte.c Fri Dec 12 09:22:06 2008
@@ -5273,8 +5273,7 @@
if (pcell == NULL || pcell->c == 0) {
return FALSE;
}
- if (word_char != vte_terminal_is_word_char(terminal,
- _vte_unistr_get_base (pcell->c))) {
+ if (word_char != vte_terminal_is_word_char(terminal, _vte_unistr_get_base (pcell->c))) {
return FALSE;
}
return TRUE;
@@ -10068,6 +10067,9 @@
char scratch_buf[VTE_UTF8_BPC];
int fore, back;
+ /* Note: since this function is only called with the pre-edit text,
+ * all the items contain gunichar only, not vteunistr. */
+
for (i = 0, cell_count = 0; i < n; i++) {
cell_count += g_unichar_to_utf8(items[i].c, scratch_buf);
}
Modified: trunk/src/vteunistr.c
==============================================================================
--- trunk/src/vteunistr.c (original)
+++ trunk/src/vteunistr.c Fri Dec 12 09:22:06 2008
@@ -95,6 +95,7 @@
return ret;
}
+/* Unused
int
_vte_unistr_strlen (vteunistr s)
{
@@ -108,6 +109,7 @@
}
return len;
}
+*/
gunichar
_vte_unistr_get_base (vteunistr s)
Modified: trunk/src/vteunistr.h
==============================================================================
--- trunk/src/vteunistr.h (original)
+++ trunk/src/vteunistr.h Fri Dec 12 09:22:06 2008
@@ -28,13 +28,13 @@
typedef guint32 vteunistr;
-#define vte_unistr_from_unichar(c) ((vteunistr) c)
-
vteunistr
_vte_unistr_append_unichar (vteunistr s, gunichar c);
+/* Unused
int
_vte_unistr_strlen (vteunistr s);
+*/
gunichar
_vte_unistr_get_base (vteunistr s);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]