OSDN Git Service

Move setting never_frosh on the terminal to term_data_link() since the other one...
authorEric Branlund <ebranlund@fastmail.com>
Fri, 6 Sep 2019 18:10:56 +0000 (11:10 -0700)
committerEric Branlund <ebranlund@fastmail.com>
Fri, 6 Sep 2019 18:10:56 +0000 (11:10 -0700)
src/main-cocoa.m

index 8fb3a9f..dd54b34 100644 (file)
@@ -1789,11 +1789,6 @@ static void Term_init_cocoa(term *t)
     
     NSEnableScreenUpdates();
     
-    /*
-     * Since do nothing special for row flushes, disable notifications about
-     * them.
-     */
-    t->never_frosh = true;
     /* Set "mapped" flag */
     t->mapped_flag = true;
     [pool drain];
@@ -2384,6 +2379,9 @@ static term *term_data_link(int i)
     /* Use a "software" cursor */
     newterm->soft_cursor = TRUE;
     
+    /* Disable the per-row flush notifications since they are not used. */
+    newterm->never_frosh = TRUE;
+
     /* Erase with "white space" */
     newterm->attr_blank = TERM_WHITE;
     newterm->char_blank = ' ';