Re: [code][textadept]Ctrl-Z in curses mode

From: Mitchell <m.att.foicica.com>
Date: Tue, 6 Feb 2018 08:37:46 -0500 (EST)

Hi Robert,

On Mon, 5 Feb 2018, Robert Gieseke wrote:

> Am 05/02/18 um 00:58 schrieb Mitchell:
>>> You can ignore suspend events and make Ctrl+Z undo by putting the following
>>> on your *~/.textadept/init.lua*:
>>>
>>> events.connect(events.SUSPEND, function()
>>> buffer:undo()
>>> return true -- prevent suspend
>>> end)
>>
>> By the way, this is also in the FAQ: https://foicica.com/textadept/FAQ.html
>
> Sorry for giving a wrong answer I had forgotten about that! Maybe adding
> hints (or even links) to the docs and comments would help? See the
> attached patch ...

Thanks, I'll apply the first bit.

Cheers,
Mitchell

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Tue 06 Feb 2018 - 08:37:46 EST

This archive was generated by hypermail 2.2.0 : Wed 07 Feb 2018 - 06:25:55 EST