Re: Duplicate line

From: morchel <morc....at.hotmail.com>
Date: Sat, 1 May 2010 02:43:29 -0700 (PDT)

I prefer to have the caret in the copied line so
I use the following function to duplicate it:

---
-- Duplicates the current line and moves the caret to the new line
function duplicate_line()
  local buffer = buffer
  buffer:line_duplicate() -- Duplicate the current line
  buffer:line_down()
end
keys.cd = { duplicate_line }
Regards, Martin
-- 
You received this message because you are subscribed to the Google Groups "textadept" group.
To post to this group, send email to textadept.at.googlegroups.com.
To unsubscribe from this group, send email to textadept+unsubscribe.at.googlegroups.com.
For more options, visit this group at http://groups.google.com/group/textadept?hl=en.
Received on Sat 01 May 2010 - 05:43:29 EDT

This archive was generated by hypermail 2.2.0 : Thu 08 Mar 2012 - 11:44:25 EST