From 603956acdcd61ce684237f9a1d538231967810b1 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Thu, 4 Jul 2002 13:53:47 +0000 Subject: 17410: narrow-to-region widgets --- Functions/Zle/narrow-to-region-invisible | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 Functions/Zle/narrow-to-region-invisible (limited to 'Functions/Zle/narrow-to-region-invisible') diff --git a/Functions/Zle/narrow-to-region-invisible b/Functions/Zle/narrow-to-region-invisible new file mode 100644 index 000000000..d70966b96 --- /dev/null +++ b/Functions/Zle/narrow-to-region-invisible @@ -0,0 +1,5 @@ +# As narrow-to-region, but replaces the text outside the editable region +# with `...' if it was non-empty. Can be used directly as a widget. + +autoload -U narrow-to-region +narrow-to-region -p '...' -P '...' -n -- cgit 1.4.1