From 6eb6f36cfdd5e730dc5fb5c63602838ba0106642 Mon Sep 17 00:00:00 2001
From: Vit Rosin <vit_r@list.ru>
Date: Sat, 14 Nov 2009 17:14:27 +0000
Subject: [PATCH] function_looks_UNneeded
---
edit/edit.c | 5 -----
edit/edit.h | 1 -
src/user.c | 4 ++--
3 files changed, 2 insertions(+), 8 deletions(-)
diff --git a/edit/edit.c b/edit/edit.c
index 9a51b79..cb24949 100644
a
|
b
|
void edit_update_curs_col (WEdit * edit) |
1659 | 1659 | edit->curs_col = edit_move_forward3(edit, edit_bol(edit, edit->curs1), 0, edit->curs1); |
1660 | 1660 | } |
1661 | 1661 | |
1662 | | int |
1663 | | edit_get_curs_col (const WEdit *edit) |
1664 | | { |
1665 | | return edit->curs_col; |
1666 | | } |
1667 | 1662 | |
1668 | 1663 | /*moves the display start position up by i lines */ |
1669 | 1664 | void edit_scroll_upward (WEdit * edit, unsigned long i) |
diff --git a/edit/edit.h b/edit/edit.h
index 0891801..15adbf2 100644
a
|
b
|
void edit_stack_free (void); |
69 | 69 | int edit_file (const char *_file, int line); |
70 | 70 | |
71 | 71 | const char *edit_get_file_name (const WEdit *edit); |
72 | | int edit_get_curs_col (const WEdit *edit); |
73 | 72 | const char *edit_get_syntax_type (const WEdit *edit); |
74 | 73 | |
75 | 74 | #endif /* MC_EDIT_H */ |
diff --git a/src/user.c b/src/user.c
index 7950358..aec69de 100644
a
|
b
|
|
42 | 42 | #include "strutil.h" |
43 | 43 | #include "../src/search/search.h" |
44 | 44 | |
45 | | #include "../edit/edit.h" /* WEdit, BLOCK_FILE */ |
| 45 | #include "../edit/edit-widget.h" /* WEdit */ |
46 | 46 | |
47 | 47 | /* For the simple listbox manager */ |
48 | 48 | #include "dialog.h" |
… |
… |
expand_format (WEdit *edit_widget, char c, int lc_quote) |
235 | 235 | case 'i': /* indent equal number cursor position in line */ |
236 | 236 | #ifdef USE_INTERNAL_EDIT |
237 | 237 | if (edit_widget) |
238 | | return g_strnfill (edit_get_curs_col (edit_widget), ' '); |
| 238 | return g_strnfill (edit_widget->curs_col, ' '); |
239 | 239 | #endif |
240 | 240 | break; |
241 | 241 | case 'y': /* syntax type */ |