diff options
author | Johannes Frankenau | 2016-06-14 19:49:50 +0200 |
---|---|---|
committer | Johannes Frankenau | 2016-06-14 19:51:47 +0200 |
commit | f1f89ad3afa3f1c8ccdadacd9889f4595cbb8e1b (patch) | |
tree | c80bafcfb391f3c00c2ad8de1c7fd4344fc68dbe /sidebar.patch | |
parent | b4c0af4a95605008f3f398e1b22da9d700a5f614 (diff) | |
download | aur-f1f89ad3afa3f1c8ccdadacd9889f4595cbb8e1b.tar.gz |
Fix cursor position after sidebar redraw.
See https://github.com/neomutt/neomutt/issues/49
Diffstat (limited to 'sidebar.patch')
-rw-r--r-- | sidebar.patch | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sidebar.patch b/sidebar.patch index 2463413e1aaa..27abb7b07e5a 100644 --- a/sidebar.patch +++ b/sidebar.patch @@ -3290,8 +3290,8 @@ diff -urN mutt-1.6.1/README.sidebar mutt-1.6.1-sidebar/README.sidebar + diff -urN mutt-1.6.1/sidebar.c mutt-1.6.1-sidebar/sidebar.c --- mutt-1.6.1/sidebar.c 1970-01-01 01:00:00.000000000 +0100 -+++ mutt-1.6.1-sidebar/sidebar.c 2016-06-12 18:43:03.967503185 +0100 -@@ -0,0 +1,1086 @@ ++++ mutt-1.6.1-sidebar/sidebar.c 2016-06-14 18:46:00.000000000 +0100 +@@ -0,0 +1,1090 @@ +/* Copyright (C) 2004 Justin Hibbits <jrh29@po.cwru.edu> + * Copyright (C) 2004 Thomer M. Gil <mutt@thomer.com> + * Copyright (C) 2015-2016 Richard Russon <rich@flatcap.org> @@ -4120,6 +4120,9 @@ diff -urN mutt-1.6.1/sidebar.c mutt-1.6.1-sidebar/sidebar.c + /* if (OldVisible == 0) */ + /* mutt_buffy_check (1); we probably have bad or no numbers */ + ++ int x = getcurx (stdscr); ++ int y = getcury (stdscr); ++ + int first_row = 0; + int num_rows = LINES - 2; + @@ -4144,6 +4147,7 @@ diff -urN mutt-1.6.1/sidebar.c mutt-1.6.1-sidebar/sidebar.c + return; + + draw_sidebar (first_row, num_rows, div_width); ++ move (y, x); +} + +/** |