Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: Add localhistory state to ZLE_STATE



On 2012-04-20, Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
> The sorting is possibly a bit of a hack.
>
> This lets you make wrappers that use set-local-history without changing
> the global setting, or show the current setting in the prompt, or
> whatever.
[...]
> +	    case 1:
> +		if (hist_skip_flags & HIST_FOREIGN) {
> +		    str = "globalhistory";
> +		} else {
> +		    str = "localhistory";
> +		}
> +		break;

Of course I managed to invert this test.

-- 
Mikael Magnusson



Messages sorted by: Reverse Date, Date, Thread, Author