소스 검색

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 년 전
부모
커밋
2b1fd53859
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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++;
 	}
 }