Andrew V. Samoilov
790b85b555
* edit.h (struct key_word): Remove time field.
...
* syntax.c: Remove MAD support.
2002-09-26 12:23:13 +00:00
Pavel Roskin
e7e6552a03
* editwidget.c (edit): Make edit_dlg local variable.
2002-09-24 15:10:47 +00:00
Pavel Roskin
91f4a75562
* editmenu.c (edit_drop_menu_cmd): Don't use edit_dlg variable.
2002-09-24 15:04:22 +00:00
Pavel Roskin
2e3fc9234b
* edit.c: Remove all references to CR_LF_TRANSLATION.
...
* editcmd.c: Likewise.
2002-09-24 04:35:44 +00:00
Pavel Roskin
996a847666
* editwidget.c (edit): Install handler for DLG_RESIZE.
2002-09-24 03:57:36 +00:00
Pavel Roskin
2571416650
* editwidget.c (edit): Set edit_dlg to NULL after it's
...
destroyed.
2002-09-23 23:42:44 +00:00
Pavel Roskin
50c15654ef
* edit.h: Move style definitions ...
...
* editdraw.c: ... here. Multiply them by 256. Remove unused
styles.
(print_to_widget): Don't divide style by 256. Simplify logic
since we only have 4 styles now.
2002-09-23 23:05:15 +00:00
Pavel Roskin
6d1beed458
* edit.c (edit_move_forward3): Use caret notation for code 127
...
and below code 32.
* editdraw.c (edit_draw_this_line): Likewise. Print '.' for
other non-printable characters and remove this code from ...
(print_to_widget): ... here.
2002-09-23 22:32:47 +00:00
Pavel Roskin
07de958369
* edit.c (edit_move_forward3): Show 'r' as ^M.
...
* editdraw.c (edit_draw_this_line): Likewise. Use MOD_ABNORMAL
attribute.
From Alexander Varakin <avarakin00@hotmail.com>
2002-09-23 07:13:11 +00:00
Pavel Roskin
3d8a56ee9c
* edit.h: Remove all references to O_TEXT, USE_O_TEXT and
...
MY_O_TEXT.
2002-09-23 07:00:30 +00:00
Pavel Roskin
e49a220a30
* edit.c: Use O_BINARY when opening files.
...
* editcmd.c: Likewise.
From Alexander Varakin <avarakin00@hotmail.com>
2002-09-23 06:54:50 +00:00
Pavel Roskin
966511399b
Move fcntl.h inclusion to global.h.
2002-09-23 06:45:32 +00:00
Pavel Roskin
fb418291eb
* editwidget.c (edit_event): Add support for mouse wheel events.
...
* edit.h: Add missing declarations for edit_move_up() and
edit_move_down().
2002-09-21 00:16:04 +00:00
Andrew V. Samoilov
bb947f855e
* edit.c: Don't initialize static selection and selection_history.
2002-09-20 15:42:25 +00:00
Andrew V. Samoilov
9f80054302
* editdraw.c (status_string): Remove font_width argument.
...
(edit_status): Fix calculation to use last column in the status string.
2002-09-20 15:15:43 +00:00
Pavel Roskin
b5265f8da5
* edit.c (edit_filters): Use gzip, not compress for *.Z files
...
for consistency with other parts of the code (viewer, mc.ext).
2002-09-04 18:57:14 +00:00
Pavel Roskin
31e34e93b8
* editcmd.c: Recheck and fix all calls to create_dlg().
...
* editwidget.c: Likewise.
2002-09-03 19:37:40 +00:00
Pavel Roskin
09df85b9b7
Reuse other translated strings.
2002-09-03 16:55:05 +00:00
Pavel Roskin
d9c6403250
* wtools.h (QuickDialog): Eliminate the "class" field - it's not
...
used and it can clash with C++ code. Adjust all dependencies.
2002-09-03 08:00:02 +00:00
Pavel Roskin
2d93d274b5
* editcmd.c (edit_raw_key_query): Eliminate
...
x_set_dialog_title().
2002-09-02 19:53:36 +00:00
Pavel Roskin
9a5bacf175
* editcmd.c (edit_block_process_cmd): Restore third argument
...
(but make it /dev/null) for compatibility with old scripts.
Reported by Andrew V. Samoilov <sav@bcs.zp.ua>
2002-09-01 23:20:37 +00:00
Pavel Roskin
d02a8d6473
* editwidget.c (edit): Avoid passing an uninitialized color
...
array to create_dlg() - pass NULL instead.
2002-08-31 04:33:40 +00:00
Andrew V. Samoilov
63d111db28
* editcmd.c (edit_printf): Use g_vsnprintf() instead of sprintf().
2002-08-27 17:01:23 +00:00
Pavel Roskin
b6862a8c26
Fix some not quite English strings in edit_block_process_cmd().
2002-08-25 19:21:30 +00:00
Pavel Roskin
221c35266c
* edit-widget.h: Eliminate ERROR_FILE.
...
* edit.c: Remove all references to ERROR_FILE.
* editcmd.c (edit_block_process_cmd): Revert to using catstrs(),
those strings are freed now. Use system(), not execute() to
execute commands. Use open_error_pipe() and close_error_pipe()
to keep track of errors.
2002-08-24 17:22:15 +00:00
Pavel Roskin
74d224e1b2
* editcmd.c: Clean up global variables in the completion code.
2002-08-22 22:15:39 +00:00
Pavel Roskin
6071fea76d
* editwidget.c: Use new dialog flags.
...
* editcmd.c: Likewise.
(edit_completion_dialog): Set DLG_COMPACT for the dialog.
2002-08-22 15:38:27 +00:00
Pavel Roskin
089a1ae9e5
* editcmd.c (compl_callback): Use common_dialog_repaint().
2002-08-22 06:10:41 +00:00
Pavel Roskin
8275c2f5fd
* editcmd.c (raw_callback): Use standard common_dialog_repaint()
...
to handle DLG_DRAW.
2002-08-22 05:58:30 +00:00
Pavel Roskin
231f67342e
* editwidget.c (edit): Make edit_bar a local variable.
2002-08-21 22:54:27 +00:00
Pavel Roskin
9e36fa257d
* global.h: Move include for rx.h and eregex.h here.
2002-08-21 07:20:39 +00:00
Pavel Roskin
4756fbf271
* editcmd.c (freestrs): Set freed strings to NULL.
...
(catstrs): Use g_malloc() and g_free().
2002-08-20 23:57:34 +00:00
Pavel Roskin
42f28932fc
* editcmd.c (freestrs): New function to clean temporary strings.
...
* edit.c (edit_clean): Call freestrs().
2002-08-20 23:18:36 +00:00
Pavel Roskin
37318c2b78
* editmenu.c: Use new create_menu() interface.
2002-08-20 21:31:23 +00:00
Pavel Roskin
3a93326ce7
* editoptions.c: Make some variables static.
...
* edit.h: Take extern declaratrions from all C files.
2002-08-19 01:23:24 +00:00
Pavel Roskin
5dbb74eca2
* editcmd.c (edit_block_process_cmd): Plug memory leak.
...
Simplify logic, reformat.
2002-08-19 00:33:08 +00:00
Pavel Roskin
21cc1c5e28
* edit.c (edit_push_action): Fix access to uninitialized memory.
...
Found by Valgrind.
2002-08-02 16:44:04 +00:00
Pavel Roskin
d6a8671055
* syntax.c: Remove all references to MAD.
2002-08-01 20:44:24 +00:00
Pavel Roskin
e692d7865c
* edit.h: Don't include mad.h.
2002-08-01 19:42:45 +00:00
Andrew V. Samoilov
bfe29a4ac2
* edit.h: Really remove open, close, write, read and mkdir definitions.
2002-07-30 18:39:04 +00:00
Andrew V. Samoilov
f7de38f345
* edit.h (edit_get_load_file): Mark message for translation.
...
(edit_get_save_file): Ditto.
2002-07-29 17:09:02 +00:00
Pavel Roskin
2e17e22122
* syntax.c (apply_rules_going_right): Recheck keyword rules when
...
a keyword is found on the left border of a context.
2002-07-20 09:12:55 +00:00
Pavel Roskin
72a5fc5cc1
* syntax.c (edit_get_syntax_color): Return colorpair index, not
...
attribute, when syntax highlighting is disabled. Handle black
and white mode separately.
2002-07-14 22:39:07 +00:00
Pavel Roskin
3c437c273d
* syntax.c (edit_load_syntax): Do nothing in black and white
...
mode.
2002-07-14 22:19:49 +00:00
Pavel Roskin
75666df0fe
* edit.h [!HAVE_SLANG]: Enable syntax highlighting.
...
* editdraw.c [!HAVE_SLANG]: Respect attributes for color pairs
by using MY_COLOR_PAIR macro.
2002-07-14 21:43:53 +00:00
Pavel Roskin
a23618b2ef
* edit.h (struct key_word): Remove unused "bg" field, rename
...
"fg" to "color", since it keeps all color information.
* syntax.c (edit_get_syntax_color): Replace "fg" and "bg"
arguments with a single argument "color".
Adjust all dependencies.
2002-07-14 17:56:47 +00:00
Pavel Roskin
bb989f677a
* editdraw.c (edit_draw_this_line): Fix setting MOD_ABNORMAL
...
attribute.
(print_to_widget): Fix displaying non-printable characters with
ncurses. Set color for every character even if syntax
highlighting is not compiled - it's needed to reset color after
non-printable characters.
2002-07-14 07:49:24 +00:00
Pavel Roskin
4655fbbb6b
* editdraw.c (edit_status): Use EDITOR_NORMAL_COLOR instead of
...
NORMAL_COLOR.
* syntax.c (edit_get_syntax_color) [!HAVE_SYNTAXH]: Likewise.
2002-07-14 06:17:02 +00:00
Pavel Roskin
2ce74d23e1
* edit.c (check_file_access): Return 1 on all errors, document
...
this behavior. Set edit->delete_file to 1 for newly created
files.
(edit_open_file): Don't set edit->delete_file, it's now done in
check_file_access().
Reported by Saso <saso@bojler.dhs.org>
2002-06-24 23:41:59 +00:00
Andrew V. Samoilov
a1efabf66b
Revert two casts back to fix calculation
2002-05-13 17:28:28 +00:00