Merge branch '1826_fixup_without_edit'

* 1826_fixup_without_edit:
  Ticket #1826: fixing build w/o internal edit
This commit is contained in:
Slava Zanko 2009-11-18 22:45:07 +02:00
commit abcc78696b
2 changed files with 6 additions and 0 deletions

View File

@ -304,6 +304,8 @@ do_edit_at_line (const char *what, int start_line)
if (use_internal_edit)
edit_file (what, start_line);
else
#else
(void) start_line;
#endif /* USE_INTERNAL_EDIT */
{
if (editor == NULL) {

View File

@ -183,6 +183,10 @@ expand_format (WEdit *edit_widget, char c, int lc_quote)
char *result;
char c_lc;
#ifndef USE_INTERNAL_EDIT
(void) edit_widget;
#endif
if (c == '%')
return g_strdup ("%");