Re: [code] Change back the selection background color to normal after copying the caret line

From: Mitchell <m.att.foicica.com>
Date: Sun, 21 Aug 2016 15:17:15 -0400 (EDT)

Hi Alireza,

On Sun, 21 Aug 2016, Alireza Bashiri wrote:

> I did pretty much every mapping in Vim but I figure out how to use
> set_sel_back or others after copying a line; for example; ['y'] =
> function() buffer.copy; set_selection_color_back end

I'm not sure exactly what you're trying to do, but your Lua syntax is
incorrect. Perhaps you meant something like:

   keys['y'] = function()
     buffer.copy()
     buffer:set_sel_back(true, 0xBBGGRR)
   end

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 Sun 21 Aug 2016 - 15:17:15 EDT

This archive was generated by hypermail 2.2.0 : Mon 22 Aug 2016 - 06:49:17 EDT