⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 expand.cc

📁 initial working phase of the design of said editor, featuring multicasting, advanced linux keyboard
💻 CC
字号:
void term::expand( u_int cursor ){   line_s* lines = ( line_s* )__here;   if( __here -> id_mask == ID_LINE_S )   {//      if( ( lines == s -> top &&//      || lines -> scr -> top -> last != NULL )      if( lines -> next == lines -> scr -> top )	 return; // already expanded   }   else // not ID_LINE_S   {      lines = new line_s( __here ); // here is no longer here, has moved      if( __here -> last != NULL )      {	 __here -> last -> next = lines;	 if( __here -> last -> id_mask == ID_LINE_S	 && ( ( line_s* )( __here -> last ) ) -> scr -> top == __here )	   ( ( line_s* )( __here -> last ) ) -> scr -> top = lines;      }/* this is a few lines down      if( __here -> next != NULL )      {	 __here -> next -> last = lines;      }*///      u_int x = _row;//      line* top = find_top( cursor, x );   // not deleting the old line   }   if( _row > 0 ) //&& top != NULL      update_to_top( cursor, lines, __here, lines -> scr -> bot      , __here -> last, _row - 1 );   if( __here == s -> bot )      s -> bot = lines -> scr -> bot;   _here = ( u_int )lines;   if( _row == 0 ) s -> top = __here;   lines -> scr -> top -> last = __here;   lines -> scr -> bot -> next = __here -> next;//   if( _row == rows - 1 )   if( __here -> next != NULL )   {      __here -> next -> last = lines -> scr -> bot;   }   __here -> next = lines -> scr -> top;   _here = ( u_int )( lines -> scr -> bot );   for_each_cursor_below( _row, &term::inc_row );   int count = 1;   for(; __here != lines -> scr -> top;      _here = ( u_int )( __here -> last ), ++count )      for_each_cursor_below( _row, &term::inc_row );   rows += count;   _row++;   _pcol = _col = 0;   repos( 0, xrow - xorig );   if( _row - _orig == note::rows ) _orig++;   if( _row > xorig + note::rows || _row + count <= xorig ) return;   redraw();}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -