nano-devel
[Top][All Lists]
Advanced

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

[Nano-devel] [PATCH] add next/prev buffer and find next/prev shortcuts f


From: Brand Huntsman
Subject: [Nano-devel] [PATCH] add next/prev buffer and find next/prev shortcuts for non-utf8
Date: Tue, 13 Mar 2018 18:46:17 -0600

The duplication of code for arrows and words caused a couple shortcuts
to not get added when no utf8 support. The first patch adds them but that 
function should be refactored to avoid issues like this in the future. I
propose 12 const char* for the 4 arrows and their ctrl/meta variations.
Initialize them at the top of shortcut_init() if ENABLE_UTF8 and using_utf8(). 
Each shortcut would then only need one declaration and this wouldn't happen 
again. The second patch implements this and first patch could be ignored. The 
defines in nano.h make the code in shortcut_init() easier to read and can be 
used by future code, such as scrollbar.

Another issue, the primary key column in help is not wide enough, causing 
syntax highlighting to only color the M-R.

M-Righ(M->)     Switch to the next file buffer

Attachment: add-next-prev-buffer-and-find-next-prev-shortcuts-for-non-utf8.patch
Description: Text Data

Attachment: select-arrow-text-once-to-avoid-duplicate-shortcuts.patch
Description: Text Data


reply via email to

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