"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/getline.c" between
tin-2.4.4.tar.xz and tin-2.4.5.tar.xz

About: TIN is a threaded NNTP and spool based UseNet newsreader.

getline.c  (tin-2.4.4.tar.xz):getline.c  (tin-2.4.5.tar.xz)
/* /*
* Project : tin - a Usenet reader * Project : tin - a Usenet reader
* Module : getline.c * Module : getline.c
* Author : Chris Thewalt & Iain Lea * Author : Chris Thewalt & Iain Lea
* Created : 1991-11-09 * Created : 1991-11-09
* Updated : 2019-01-15 * Updated : 2020-06-01
* Notes : emacs style line editing input package. * Notes : emacs style line editing input package.
* Copyright : (c) Copyright 1991-99 by Chris Thewalt & Iain Lea * Copyright : (c) Copyright 1991-99 by Chris Thewalt & Iain Lea
* Permission to use, copy, modify, and distribute this * Permission to use, copy, modify, and distribute this
* software for any purpose and without fee is hereby * software for any purpose and without fee is hereby
* granted, provided that the above copyright notices * granted, provided that the above copyright notices
* appear in all copies and that both the copyright * appear in all copies and that both the copyright
* notice and this permission notice appear in supporting * notice and this permission notice appear in supporting
* documentation. This software is provided "as is" without * documentation. This software is provided "as is" without
* express or implied warranty. * express or implied warranty.
*/ */
skipping to change at line 119 skipping to change at line 119
tprompt = strunc(prompt, cCOLS - 6); tprompt = strunc(prompt, cCOLS - 6);
gl_buf[0] = 0; /* used as end of input indicator */ gl_buf[0] = 0; /* used as end of input indicator */
gl_fixup(-1, 0); /* this resets gl_fixup */ gl_fixup(-1, 0); /* this resets gl_fixup */
gl_width = cCOLS - MIN(cCOLS - 6, strwidth(tprompt)); gl_width = cCOLS - MIN(cCOLS - 6, strwidth(tprompt));
gl_prompt = tprompt; gl_prompt = tprompt;
gl_pos = gl_cnt = 0; gl_pos = gl_cnt = 0;
if (max_chars == 0) { if (max_chars == 0) {
if (number_only) if (number_only)
gl_max = 6; gl_max = 10;
else else
gl_max = BUF_SIZE; gl_max = BUF_SIZE;
} else } else
gl_max = max_chars; gl_max = max_chars;
my_fputs(tprompt, stdout); my_fputs(tprompt, stdout);
cursoron(); cursoron();
my_flush(); my_flush();
if (gl_in_hook) { if (gl_in_hook) {
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)