Browse Source

Fix next and previous utf8 searching functions.

git-svn-id: https://klish.googlecode.com/svn/trunk@342 0eaa4687-2ee9-07dd-09d9-bcdd2d2dd5fb
Serj Kalichev 13 years ago
parent
commit
2b1fd53859
1 changed files with 2 additions and 2 deletions
  1. 2 2
      tinyrl/tinyrl.c

+ 2 - 2
tinyrl/tinyrl.c

@@ -24,7 +24,7 @@ static void utf8_point_left(tinyrl_t * this)
 {
 	if (this->utf8) {
 		while (this->point &&
-			(UTF8_10 == (this->buffer[this->point] & UTF8_MASK)))
+			(UTF8_10 == (this->line[this->point] & UTF8_MASK)))
 			this->point--;
 	}
 }
@@ -34,7 +34,7 @@ static void utf8_point_right(tinyrl_t * this)
 {
 	if (this->utf8) {
 		while ((this->point < this->end) &&
-			(UTF8_10 == (this->buffer[this->point] & UTF8_MASK)))
+			(UTF8_10 == (this->line[this->point] & UTF8_MASK)))
 			this->point++;
 	}
 }