Deleted Added
full compact
prompt.c (195941) prompt.c (221715)
1/* $FreeBSD: head/contrib/less/prompt.c 195941 2009-07-29 09:20:32Z delphij $ */
1/* $FreeBSD: head/contrib/less/prompt.c 221715 2011-05-09 21:51:59Z delphij $ */
2/*
2/*
3 * Copyright (C) 1984-2009 Mark Nudelman
3 * Copyright (C) 1984-2011 Mark Nudelman
4 *
5 * You may distribute under the terms of either the GNU General Public
6 * License or the Less License, as specified in the README file.
7 *
8 * For more information about less, or for information on how to
9 * contact the author, see the README file.
10 */
11

--- 287 unchanged lines hidden (view full) ---

299#if EDITOR
300 case 'E': /* Editor name */
301 ap_str(editor);
302 break;
303#endif
304 case 'f': /* File name */
305 ap_str(get_filename(curr_ifile));
306 break;
4 *
5 * You may distribute under the terms of either the GNU General Public
6 * License or the Less License, as specified in the README file.
7 *
8 * For more information about less, or for information on how to
9 * contact the author, see the README file.
10 */
11

--- 287 unchanged lines hidden (view full) ---

299#if EDITOR
300 case 'E': /* Editor name */
301 ap_str(editor);
302 break;
303#endif
304 case 'f': /* File name */
305 ap_str(get_filename(curr_ifile));
306 break;
307 case 'F': /* Last component of file name */
308 ap_str(last_component(get_filename(curr_ifile)));
309 break;
307 case 'i': /* Index into list of files */
308#if TAGS
309 if (ntags())
310 ap_int(curr_tag());
311 else
312#endif
313 ap_int(get_index(curr_ifile));
314 break;

--- 44 unchanged lines hidden (view full) ---

359 if (len != NULL_POSITION)
360 ap_pos(len);
361 else
362 ap_quest();
363 break;
364 case 't': /* Truncate trailing spaces in the message */
365 while (mp > message && mp[-1] == ' ')
366 mp--;
310 case 'i': /* Index into list of files */
311#if TAGS
312 if (ntags())
313 ap_int(curr_tag());
314 else
315#endif
316 ap_int(get_index(curr_ifile));
317 break;

--- 44 unchanged lines hidden (view full) ---

362 if (len != NULL_POSITION)
363 ap_pos(len);
364 else
365 ap_quest();
366 break;
367 case 't': /* Truncate trailing spaces in the message */
368 while (mp > message && mp[-1] == ' ')
369 mp--;
370 *mp = '\0';
367 break;
368 case 'T': /* Type of list */
369#if TAGS
370 if (ntags())
371 ap_str("tag");
372 else
373#endif
374 ap_str("file");

--- 210 unchanged lines hidden ---
371 break;
372 case 'T': /* Type of list */
373#if TAGS
374 if (ntags())
375 ap_str("tag");
376 else
377#endif
378 ap_str("file");

--- 210 unchanged lines hidden ---