[BACK]Return to paragraph.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / mg

Diff for /src/usr.bin/mg/paragraph.c between version 1.46 and 1.47

version 1.46, 2018/11/17 09:52:34 version 1.47, 2023/03/08 04:43:11
Line 30 
Line 30 
  * preceding line. Keep doing this until a line with only spaces is found or   * preceding line. Keep doing this until a line with only spaces is found or
  * the start of buffer.   * the start of buffer.
  */   */
 /* ARGSUSED */  
 int  int
 gotobop(int f, int n)  gotobop(int f, int n)
 {  {
Line 69 
Line 68 
  * Move to end of paragraph.   * Move to end of paragraph.
  * See comments for gotobop(). Same, but moving forwards.   * See comments for gotobop(). Same, but moving forwards.
  */   */
 /* ARGSUSED */  
 int  int
 gotoeop(int f, int n)  gotoeop(int f, int n)
 {  {
Line 126 
Line 124 
  * Justify a paragraph.  Fill the current paragraph according to the current   * Justify a paragraph.  Fill the current paragraph according to the current
  * fill column.   * fill column.
  */   */
 /* ARGSUSED */  
 int  int
 fillpara(int f, int n)  fillpara(int f, int n)
 {  {
Line 264 
Line 261 
  * the cursor is on an empty line, move down the buffer to the first line with   * the cursor is on an empty line, move down the buffer to the first line with
  * non-space characters. Then mark n paragraphs and delete.   * non-space characters. Then mark n paragraphs and delete.
  */   */
 /* ARGSUSED */  
 int  int
 killpara(int f, int n)  killpara(int f, int n)
 {  {
Line 298 
Line 294 
  * This leaves the cursor at the beginning of the paragraph where markpara()   * This leaves the cursor at the beginning of the paragraph where markpara()
  * was invoked.   * was invoked.
  */   */
 /* ARGSUSED */  
 int  int
 markpara(int f, int n)  markpara(int f, int n)
 {  {
Line 328 
Line 323 
  * multiple times, transpose to the n'th paragraph. If invoked between   * multiple times, transpose to the n'th paragraph. If invoked between
  * paragraphs, move to the previous paragraph, then continue.   * paragraphs, move to the previous paragraph, then continue.
  */   */
 /* ARGSUSED */  
 int  int
 transposepara(int f, int n)  transposepara(int f, int n)
 {  {
Line 408 
Line 402 
  * Insert char with work wrap.  Check to see if we're past fillcol, and if so,   * Insert char with work wrap.  Check to see if we're past fillcol, and if so,
  * justify this line.  As a last step, justify the line.   * justify this line.  As a last step, justify the line.
  */   */
 /* ARGSUSED */  
 int  int
 fillword(int f, int n)  fillword(int f, int n)
 {  {

Legend:
Removed from v.1.46  
changed lines
  Added in v.1.47