Deleted Added
sdiff udiff text old ( 195941 ) new ( 221715 )
full compact
1/* $FreeBSD: head/contrib/less/prompt.c 195941 2009-07-29 09:20:32Z delphij $ */
2/*
3 * Copyright (C) 1984-2009 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;
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--;
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 ---