nano-devel
[Top][All Lists]
Advanced

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

[Nano-devel] How to highlight cursor line


From: Marco Diego Aurélio Mesquita
Subject: [Nano-devel] How to highlight cursor line
Date: Mon, 4 Sep 2017 12:33:38 -0300

Hi Devs!

I observed that finding the position of the cursor on a big monitor
with a small font can be a bit a hassle with nano. I decided to try to
implement a feature to not highlight the line number on the line where
the cursor is.

At first, I tried special casing the code in edit_draw to disable
wattron and wattroff if row == openfile->current_y. It worked when
enter is pressed or when a backspace removes a line. To make it work
when pressing Up/Down arrow keys, I tried experimenting with changes
in do_up but could find no reliable way to repaint the lines where the
cursor was and its new line.

Is there a simple way to achieve what I want?

Thanks!



reply via email to

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