HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //usr/share/jed/lib/seldisp.sl
#ifdef HAS_LINE_ATTR
define set_selective_display ()
{
   variable c, arg, h;
   variable msg;

   c = prefix_argument (-1);

   % Allow the current column be used to set the indent level.
   if (c == -1)
     c = what_column ();

   if (c <= 1)
     {
	arg = 0;
	msg = "Cancelling selective display mode...";
     }
   else
     {
	arg = 1;
	c--;
	msg = sprintf ("Hiding all lines beyond column %d...", c);
     }
   flush (msg);

   push_spot ();
   bob ();
   h = 0;
   variable ws = get_blocal_var ("seldisp_whitespace", " \t");
   do
     {
	bol(); skip_chars (ws);
	ifnot (eolp ())
	  h = arg * (what_column () > c);
	% Otherwise, a blank line to if the last line was hidden, then
	% hide this one too.
	set_line_hidden (h);
     }
   while (down_1 ());

   pop_spot ();
   message (msg + "done");
}