nano-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nano-devel] Add function to convert leading whitespace to tabs


From: Erik Lundin
Subject: Re: [Nano-devel] Add function to convert leading whitespace to tabs
Date: Sun, 19 Oct 2014 15:00:53 +0200

On Sun, 2014-10-19 at 12:39 +0200, Benno Schulenberg wrote:
> No, it can undo a whole series of changes.  Try adding, deleting,
> moving the cursor, then adding and deleting some more, and then
> undo each of them step by step.
> 

I've implemented the undo functions but looking through the undo code i
notice that the variable holding the line data in the undo struct is:

char *strdata;

This makes undoing/redoing the "indent/unindent :-)/whitespace to tabs"
a lot harder when it's done by selecting multiple lines. Or should the
undo function just go line by line like search/replace even though it's
done in a single action?

-- 
Erik Lundin <address@hidden>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]