Re: [code] Textadept Curses indents when pasting code

From: Mitchell <m.att.foicica.com>
Date: Wed, 14 Aug 2019 11:59:08 -0400 (EDT)

Hi Thorsten,

On Wed, 14 Aug 2019, Thorsten Kampe wrote:

> Textadept Curses (which I exclusively use) indents already
> formatted code when pasting. The GUI version does not. This
> results in massively distorted code when pasting.
>
> Can I prevent TA Curses from doing so?

Does your terminal support something called "bracketed paste mode"? textadept-curses utilizes this mode[1] in order to not autoindent externally pasted code.

Cheers,
Mitchell

[1]: https://foicica.com/hg/textadept/file/19642c7c118a/modules/textadept/editing.lua#l181

-- 
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 Wed 14 Aug 2019 - 11:59:08 EDT

This archive was generated by hypermail 2.2.0 : Thu 15 Aug 2019 - 06:48:36 EDT