X-Git-Url: https://git.deb.at/?a=blobdiff_plain;f=edit.c;h=83f4beb993ba2bc2f0fc3cfa64e3c49c5279265d;hb=3212da92838c056bcc1cafa57beaf26086e2ac96;hp=28009fec627d57f843e6bfc67be5a4f39667b1f7;hpb=4892aec476c9d7ce2cf11483cc369fcddf7bea6a;p=pkg%2Fabook.git diff --git a/edit.c b/edit.c index 28009fe..83f4beb 100644 --- a/edit.c +++ b/edit.c @@ -1,6 +1,7 @@ /* - * edit.c + * $Id$ + * * by JH * * Copyright (C) Jaakko Heinonen @@ -9,6 +10,7 @@ #include #include #include "abook_curses.h" +#include "ui.h" #include "abook.h" #include "database.h" #include "list.h" @@ -41,7 +43,7 @@ editor_tab(int tab) "/ OTHER \\" }; - mvwhline(editw, TABLINE+1, 0, ACS_HLINE, EDITW_COLS); + mvwhline(editw, TABLINE+1, 0, UI_HLINE_CHAR, EDITW_COLS); for(i=0; i < TABS; i++) mvwaddstr(editw, TABLINE, 16 * i + 3, tab_names[i]); @@ -370,8 +372,9 @@ edit_loop(int item) case KEY_RIGHT: tab = tab == MAX_TAB ? 0 : tab + 1; break; case 'r': roll_emails(item); break; - case '?': display_editor_help(editw); break; + case '?': display_help(HELP_EDITOR); break; case 'u': edit_undo(item, RESTORE_ITEM); break; + case 12 : clearok(stdscr, 1); break; /* ^L (refresh screen) */ default: return edit_field(tab, c, item); }