Commit Graph

6763 Commits

Author SHA1 Message Date
Pavel Roskin
d78556d3c5 * edit.h: Use D_ERROR for edit_error_dialog, D_NORMAL for query
dialogs.  Remove unused edit_query_dialog4.
2005-05-03 23:26:51 +00:00
Pavel Roskin
a6dd81352b * screen.c (try_to_select): Don't call display_mini_info(), it
will be called later because select_item sets panel->dirty.
This fixes the mini status appearing first after Ctrl-O.
2005-05-03 15:16:57 +00:00
Roland Illig
419025e926 * syntax/c.syntax: Added missing punctuation characters. 2005-05-01 14:21:02 +00:00
Pavel Roskin
bf7853c225 * syntax/Syntax: Don't highlight csh scripts. Allow using
"/usr/bin/env" instead of the full path.
2005-04-28 19:44:49 +00:00
Pavel Roskin
2836321b37 trimmed by trim_changelog 2005-04-28 19:42:30 +00:00
Leonard den Ottolander
8994b8bbec Added casts on 2 parameters to g_snprintf. 2005-04-27 21:02:59 +00:00
Leonard den Ottolander
2a6e12765a Added pchel and leonardjo as contributors. 2005-04-27 20:55:01 +00:00
Roland Illig
70f77a1945 * view.c: Changed use of view->text_wrap_mode to reflect its
type, being gboolean. That is, only use boolean operators and
	TRUE/FALSE for assignment. Bug reported by Jindrich Makovicka.
2005-04-27 18:39:21 +00:00
Roland Illig
413ed3236e * global.h: Define NDEBUG (used by assert() depending on
MC_ENABLE_DEBUGGING_CODE).
2005-04-26 19:42:37 +00:00
Roland Illig
957f3d180d * acinclude.m4: Renamed AS_HELP_STRING to AC_HELP_STRING for
compatibility with autoconf-2.57.
2005-04-26 17:29:58 +00:00
Roland Illig
2404c633d0 struct view_coord coord;
coord.vc_line = line;
    view_ccache_complete (view, &coord, CCACHE_OFFSET);
    return coord.offset;
2005-04-26 15:06:38 +00:00
Roland Illig
81306e3b78 * mc-test: Made the number of stderr lines that are shown
configurable.
2005-04-26 12:12:59 +00:00
Roland Illig
afc6f9b696 * mc-test: Removed the all_warnings testcase. 2005-04-26 12:08:54 +00:00
Roland Illig
ebbcf8d28a * view.c: Removed inconsistent whitespace. 2005-04-25 08:50:59 +00:00
Roland Illig
b46af7bac6 * view.c (struct WView): Replaced view->last with
view->dpy_complete. The former variable's name didn't match its
	value.
2005-04-25 08:47:22 +00:00
Roland Illig
a34e4b5dde * view.c (offset_type): Adjusted the PRI[dX] constants to be
like the ISO C99 PRI* constants.
2005-04-25 00:26:46 +00:00
Roland Illig
eaa04d2269 * view.c (init_growing_view): Renamed to
view_load_command_output(). Removed dead code. Removed unused
	parameter.
2005-04-24 23:47:27 +00:00
Roland Illig
fa7945759b * view.c (view_move_forward2): Fixed a bug related to the return
value, which had made the down and page-down keys no-ops.
2005-04-24 23:21:05 +00:00
Roland Illig
796bfbf4f0 * HACKING: Added a warning for the ?: operator. 2005-04-22 15:35:35 +00:00
Roland Illig
bbdebd492c * view.c (display): Fixed operator precedence with ?: in hex
display.
2005-04-22 15:26:25 +00:00
Roland Illig
94a7ad1a56 * view.c (view_move_forward2): Added more assertions. Rewrote
condition for breaking out of the loop when upto == 0.
2005-04-22 15:18:14 +00:00
Roland Illig
5b7339a2db * view.c (view_move_forward2): Fixed a bug discovered by
Jindrich Makovicka. The return value did not take into account
	the value of the `upto' parameter.
2005-04-22 15:01:11 +00:00
Roland Illig
4a96e50b13 * configure.ac: Using MC_ARG_ENABLE_DEVELOPER_MODE instead of
the --maintainer-mode.
2005-04-21 22:31:58 +00:00
Roland Illig
26c8b13218 * acinclude.m4: Added macro MC_ARG_ENABLE_DEVELOPER_MODE. 2005-04-21 22:28:48 +00:00
Andrew V. Samoilov
c6a4eae10c * utilvfs.c (is_localized_month): Check "month" for NULL and
forbid punctuation characters in localized month abbreviation.
2005-04-21 10:04:06 +00:00
Andrew V. Samoilov
d519f9cbe8 Add new line for standard formatting. 2005-04-21 10:02:52 +00:00
Roland Illig
92526f4b57 * view.c (display): Extracted the code for drawing the ruler into
its own function, view_display_ruler(). Rewrote it.
2005-04-19 22:33:21 +00:00
Roland Illig
2312d2ce97 * view.c: Replaced const_cast with str_unconst. 2005-04-19 22:16:25 +00:00
Roland Illig
2842c33f11 * view.c (view_move_forward2): Early return if get_byte() returns
-1.
2005-04-19 21:27:03 +00:00
Roland Illig
1c367fbab4 * view.c (view_free_growing_buffer): Renamed to
view_growbuf_free(). Simplified the code.
2005-04-19 20:54:53 +00:00
Roland Illig
f6e6c6e80d * view.c (struct WView): Renamed nib_shift to hexedit_lownibble.
Replaced 0 literals with FALSE.
2005-04-19 20:33:51 +00:00
Roland Illig
008c9ef797 * view.c (view_file_load_data): Removed the requirement for
ds_file_datasize to be a power of two.
2005-04-19 18:36:23 +00:00
Roland Illig
0972491418 * view.c: Small formatting changes. 2005-04-18 21:02:55 +00:00
Roland Illig
25cf80294b * view.c: Fixed a typo. 2005-04-18 20:18:12 +00:00
Roland Illig
26c2f7fc50 * view.c (save_edit_changes): Renamed to
view_hexedit_save_changes().
2005-04-18 20:12:18 +00:00
Roland Illig
f6f90ed34f * view.c (struct WView): Moved the growing buffer variables
between the data source and the display section.
2005-04-18 20:06:16 +00:00
Roland Illig
aae5612581 * view.c (view_set_datasource_string): Removed call to
view_close_datasource() for consistency with the other
	view_set_datasource_*() functions. Adjusted the callers.
2005-04-17 11:40:26 +00:00
Roland Illig
18325716b1 * view.c (display): Renamed frame_shift to left or top, whatever
is more appropriate.
2005-04-17 11:35:31 +00:00
Roland Illig
0dc31ebb6c * view.c (display): Renamed width and height to right and bottom.
The values of the variables aren't really the width and height
	of anything.
2005-04-17 11:21:54 +00:00
Roland Illig
56ea657694 * view.c (display): Simplified the ruler drawing code. 2005-04-17 11:05:42 +00:00
Roland Illig
093f7a679a * ChangeLog: Added the rest of the log message. 2005-04-17 10:15:32 +00:00
Roland Illig
054e617e9b * view.c: Added four functions view_get_top(), view_get_left(),
view_get_bottom(), view_get_right() to mark the bounds of the
	rectangle that can be used for displaying data. Expressed
	view_get_datalines() and view_get_datacolumns() in terms of
	these four functions.
2005-04-17 10:14:18 +00:00
Roland Illig
46a8f2bdc5 * view.c: Corrected some typos and indentation. 2005-04-17 10:02:58 +00:00
Roland Illig
76c3ff06a5 * view.c: Eliminated some ?: operators. 2005-04-17 09:50:38 +00:00
Roland Illig
98240f77bd * view.c (view_load): Changed return type to gboolean. Adjusted
returned values.
	* view.c (view): Rewrote the code a little bit.
	* view.h (view): Rewrote the comment.
2005-04-17 09:35:41 +00:00
Roland Illig
74318e44bb * view.c (save_edit_changes): Changed return type to gboolean.
* view.c (view_ok_to_quit): Changed return type to gboolean.
	Adjusted returned values.
2005-04-17 09:17:58 +00:00
Roland Illig
3c872a532c * view.c (save_edit_changes): Completely rewritten to be robust
on errors. All changed bytes that could not be saved are kept
	in the change list, so that the user can try to save them later.
	* view.c (view_set_byte): Added for save_edit_changes().
	* view.c (display): view_place_cursor() is called after displaying
	in hex mode.
2005-04-17 09:05:42 +00:00
Leonard den Ottolander
c774c5b4a7 Syntax fixes (eiffel, perl, php, syntax). 2005-04-16 23:53:28 +00:00
Roland Illig
3cdf8bf168 * view.c (free_change_list): Don't use view->change_list as
scratch variable.
2005-04-16 22:06:53 +00:00
Roland Illig
7456a7c035 * view.c (enqueue_change): Rewrote the function once more, this
time eliminating the redundant variable `curr'. Introduced
	another variable, as it was inappropriate to reuse the `head'
	variable as a list iterator.
2005-04-16 22:01:48 +00:00