OSDN Git Service

fix text box action in text is empty.
authorornse01 <ornse01@users.sourceforge.jp>
Sun, 11 Sep 2011 06:13:48 +0000 (06:13 +0000)
committerornse01 <ornse01@users.sourceforge.jp>
Sun, 11 Sep 2011 06:13:48 +0000 (06:13 +0000)
git-svn-id: http://svn.sourceforge.jp/svnroot/bchan/bchanl/trunk@316 20a0b8eb-f62a-4a12-8fe1-b598822500fb

src/bchanl_hmi.c

index b84141e..1e7ffb1 100644 (file)
@@ -478,7 +478,7 @@ EXPORT W subjectoptionwindow_gettextboxaction(subjectoptionwindow_t *window, TC
                        return SUBJECTOPTIONWINDOW_GETTEXTBOXACTION_COPY;
                case (0x4000|P_NL):
                        len0 = cget_val(window->tb_filter_id, 128, (W*)window->strbuf);
-                       if (len0 <= 0) {
+                       if (len0 < 0) {
                                return SUBJECTOPTIONWINDOW_GETTEXTBOXACTION_FINISH;
                        }
                        *val = window->strbuf;