[PATCH 4/4] cfdisk: add home and end keys movements in partition list

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

 



Signed-off-by: Francesco Cosoleto <cosoleto@xxxxxxxxx>
---
 fdisk/cfdisk.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/fdisk/cfdisk.c b/fdisk/cfdisk.c
index 1908b85..f9aa059 100644
--- a/fdisk/cfdisk.c
+++ b/fdisk/cfdisk.c
@@ -2713,6 +2713,12 @@ do_curses_fdisk(void) {
 	    clear();
 	    draw_screen();
 	    break;
+	case KEY_HOME:
+		draw_cursor(-cur_part);
+		break;
+	case KEY_END:
+		draw_cursor(num_parts - cur_part - 1);
+		break;
 	default:
 	    print_warning(_("Illegal command"));
 	    putchar(BELL); /* CTRL-G */
-- 
1.7.1

--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux