Roland Illig
00fcae9141
* view.c: view_display_status() is called inside display().
2005-07-07 17:03:25 +00:00
Roland Illig
c4d669162a
* view.c (view_status): Renamed to view_display_status().
2005-07-07 16:59:31 +00:00
Roland Illig
cecafaab0b
* view.c (view_compute_areas): Fixed a bug noted by Pavel
...
Tsekov. The coordinates are now relative to the Widget, as they
should be.
2005-07-07 16:48:55 +00:00
Roland Illig
338c32c400
Added an assertion to offset_rounddown to make sure that b != 0.
2005-07-06 22:35:17 +00:00
Roland Illig
e3176f640e
Use the correct coodinates for displaying the percentage in the status line.
2005-07-06 19:36:59 +00:00
Roland Illig
0785232a60
* view.c: Changed some variables from int to screen_dimen.
...
Instead of relying on each of the view_display_* functions to
compute the correct coordinates they are managed using the new
function view_compute_areas(). In the view_display_* functions,
all calculations are done 0-based; before, the calculation had
involved the relative position of the area. Removed "static"
variables from view_status(). Simplified view_display_clean().
2005-07-06 19:12:25 +00:00
Roland Illig
4150000223
Removed the #include directive for "ecs.h", as this file is not yet in HEAD.
2005-07-06 15:38:43 +00:00
Leonard den Ottolander
674dac483d
complete.c: Fix autocompletion for single possible path when "complete
...
show all" is set.
2005-07-06 11:16:08 +00:00
Roland Illig
148f56adcd
* textconf.c: mc --version prints the size of commonly used data
...
types.
2005-07-05 20:57:38 +00:00
Roland Illig
db1e5ef53c
Added an "inline" specifier to str_unconst_inlined.
2005-07-05 20:50:02 +00:00
Roland Illig
a041ed48a9
Removed unused local variable.
2005-07-05 20:31:18 +00:00
Roland Illig
a1db50305e
* chmod.c: Changed all references to umode_t into mode_t.
2005-07-05 20:14:15 +00:00
Roland Illig
9f55376746
* view.c (view_load): Don't try to use fcntl() with VFS file
...
handles. That cannot work.
2005-07-05 19:19:17 +00:00
Roland Illig
e3b7168498
* achown.c: Changed all references to umode_t into mode_t.
...
* file.c: Likewise.
2005-07-05 18:18:36 +00:00
Roland Illig
96223eace4
Replaced 8 space characters with one tab for indentation.
2005-07-03 15:31:55 +00:00
Roland Illig
aac7b35bfc
The value of b is unused in view_set_byte().
2005-07-03 14:01:25 +00:00
Roland Illig
c3f40d150f
* textconf.c: mc --version prints the number of bits of off_t.
2005-07-03 11:37:28 +00:00
Roland Illig
1ee7a7c31f
* view.c (view_fix_cursor_position): Fixed a division-by-zero
...
bug, which had been reported by Dirk Jagdmann and Pavel Tsekov.
Pavel also tracked down the bug.
2005-07-01 20:48:29 +00:00
Roland Illig
1440266805
Fixed a typo: DS_VFS_FILE => DS_FILE.
2005-06-30 23:16:14 +00:00
Roland Illig
6e5508ef14
* global.h: Don't use MC_ENABLE_DEBUGGING_CODE to decide whether
...
to enable or disable assertions. Just use the default value.
2005-06-30 23:12:08 +00:00
Roland Illig
7f25b3154b
Added some more assertions to check whether bytes_per_line is really != 0.
2005-06-30 22:58:52 +00:00
Roland Illig
1918157719
* view.c (view_growbuf_load_until): Check the datasource in the
...
right place. (get_byte_growing_buffer): Removed an unnecessary
assertion. (view_file_load_data): Make sure the right datasource
is selected. (view_set_byte): This function is only expected to
be called when datasource == DS_FILE. Removed unused code.
2005-06-30 22:50:30 +00:00
Roland Illig
b27499f6da
* ext.c (get_file_type_local): Redirect error messages from
...
file(1) to /dev/null.
2005-06-28 13:55:33 +00:00
Roland Illig
dfbc2522aa
* view.c (display): Splitted up into view_display_hex() and
...
view_display_text().
2005-06-28 13:21:42 +00:00
Roland Illig
868c55faa6
* view.c (display): Changed return type to void.
2005-06-28 13:02:09 +00:00
Roland Illig
a095bce5ee
(do_regexp_search): Removed unnecessary type cast.
...
(do_normal_search): Likewise.
2005-06-28 12:28:35 +00:00
Roland Illig
6fdbaf90a0
* view.c (normal_search): Replaced with normal_search_cmd().
2005-06-28 12:25:34 +00:00
Roland Illig
bb8946d3e2
Removed misleading comment for view_load_command_output().
2005-06-28 12:16:17 +00:00
Roland Illig
9c27d4c71f
Removed unused variable.
2005-06-28 12:15:05 +00:00
Roland Illig
48b81cf616
* view.c: Simplified error handling when loading files.
2005-06-28 12:13:37 +00:00
Roland Illig
cf9ca5b46b
* view.c: Eliminated the need for function pointer casts.
2005-06-27 23:19:32 +00:00
Roland Illig
00261c30de
* view.c: Renamed view_quit to want_to_quit and changed its type
...
to gboolean.
2005-06-27 22:38:03 +00:00
Roland Illig
fe50acadd4
Some more inline functions ...
2005-06-27 22:36:00 +00:00
Roland Illig
bb142400e1
* view.c: Massive speed-ups by reordering statements and declaring
...
functions as inline.
2005-06-27 22:11:55 +00:00
Roland Illig
d991a41c9f
(coord_cache_entry_less): Another speed-up by declaring the
...
function as inline.
2005-06-27 21:37:51 +00:00
Roland Illig
1300633147
* view.c (is_nroff_sequence): Reordered the statements to gain
...
a speed-off of 30 percent on a 10 MB file.
2005-06-27 21:34:36 +00:00
Leonard den Ottolander
f10fe35005
* main.[ch], user.c: Fixed a double free in mc_maybe_editor_or_viewer().
...
Restructured setup_dummy_mc() and expand_format() accordingly.
2005-06-22 21:38:52 +00:00
Pavel Roskin
d093a4024c
* view.c (view_percent): Remove unused variable.
2005-06-21 19:44:28 +00:00
Roland Illig
62d358bdc1
Took my "opinion" out of the ChangeLog message from Jun 14.
2005-06-16 21:19:37 +00:00
Roland Illig
9711666a53
* view.c (view_get_filesize_with_exact): Removed. I didn't like
...
the name. Replaced with a new function view_may_still_grow().
2005-06-14 14:13:11 +00:00
Roland Illig
c534a510c7
* view.c: Fixed an integer wraparound bug.
2005-06-14 13:34:41 +00:00
Roland Illig
0979ed9626
Changed the name of the multiple-inclusion guard.
2005-06-14 13:14:49 +00:00
Roland Illig
3bac3bdf53
Removed misleading comment.
2005-06-14 13:07:12 +00:00
Roland Illig
6bf747eccf
* widget.h (struct WButtonBar): Moved into widget.c.
...
* widget.c (struct WButtonBar): Moved from widget.h.
* boxes.c: Don't dereference WButtonBar.
* help.c: Likewise.
* layout.c: Likewise.
* view.c: Likewise.
2005-06-14 13:02:30 +00:00
Roland Illig
468ab7a3cd
* widget.c: Added code to handle multiple types of functions for
...
commands.
* widget.h: Likewise.
2005-06-14 12:11:38 +00:00
Roland Illig
27ef4ba453
* help.c: Use buttonbar_clear_label().
...
* tree.c: Likewise.
2005-06-14 11:34:28 +00:00
Roland Illig
160686b6a8
void
...
buttonbar_clear_label (Dlg_head *h, int idx)
{
WButtonBar *bb = find_buttonbar (h);
if (!bb)
return;
set_label_text (bb, idx, "");
bb->labels[idx - 1].tag = BBFUNC_NONE;
}
2005-06-14 11:30:26 +00:00
Roland Illig
9d8e5504e2
* achown.c (advanced_chown_callback): Swapped the arguments of a
...
recursive function call -- the types didn't match.
2005-06-14 10:26:06 +00:00
Roland Illig
c4c1c12432
* util.h (free_after): Moved to vfs/smbfs.c, as this is the only
...
place where it is used. This is necessary because the SunPro
compiler creates external references even for functions that are
only referred to in unused inline functions.
2005-06-08 00:23:44 +00:00
Leonard den Ottolander
f5dabea2a6
main.c: Also match tabs as empty command.
2005-06-07 20:55:13 +00:00
Roland Illig
6edc2743db
* command.c (command_callback): Fixed gcc warning about
...
incompatible pointer types.
2005-06-07 14:16:19 +00:00
Andrew V. Samoilov
7a0f4c45ef
* subshell.c (exit_subshell): Do not blindly perform cleanup.
2005-06-07 09:05:09 +00:00
Roland Illig
b2b0d33105
* view.c (view_move_up): In text wrap mode, don't display parts
...
of lines that only consist of the (invisible) newline character.
* view.c (view_move_down): Likewise.
2005-06-07 07:37:00 +00:00
Roland Illig
69879eab1e
* view.c (view_ccache_lookup): Replaced the min_nroff_column
...
variable with a state chart, which makes the code clearer and
fixes a bug in translating line/column pairs into offsets.
2005-06-07 07:06:48 +00:00
Roland Illig
bb23db86a7
Removed trailing whitespace.
2005-06-05 23:43:49 +00:00
David Martin
5c6b8862ba
Localize label.
2005-05-31 09:13:41 +00:00
Leonard den Ottolander
2bba061bf0
* src/boxes.c, vfs/ftpfs.[ch]: Add checkbox to allow passive FTP
...
over proxy to VFS dialog.
2005-05-29 12:10:08 +00:00
Leonard den Ottolander
3be17f6657
main.c: Fix blocking of panel cd-ing when there are only spaces on the
...
command line.
2005-05-29 11:54:22 +00:00
Pavel Roskin
1f60f44145
Update postal address of Free Software Foundation.
2005-05-27 03:35:10 +00:00
Roland Illig
ade85a1817
Moved the hexedit functions behind the display management.
2005-05-26 10:40:10 +00:00
Roland Illig
7ee9c2b956
Moved the data source constructors and the descructor into the data
...
sources section. Created a new section for the growing buffer.
2005-05-26 10:17:38 +00:00
Roland Illig
f4618b1731
Provided an introducing comment to the data sources section.
2005-05-26 10:04:26 +00:00
Roland Illig
745e81ab5f
Moved the view_growbuf_filesize(), view_get_filesize_with_exact() and
...
view_get_filesize() functions into the data sources section.
2005-05-26 09:51:03 +00:00
Roland Illig
a5abbdf9d6
Moved the prototypes of the data source functions into the data source
...
section. Same for the get_byte_indexed() function.
2005-05-26 09:46:48 +00:00
Roland Illig
01c1faa0f5
Moved view_growbuf_read_until() into the data source section.
2005-05-26 09:34:44 +00:00
Roland Illig
2c68774812
* view.c: Removed unnecessary prototype declarations for the cursor
...
movement functions.
2005-05-26 09:22:51 +00:00
Roland Illig
608e7b4970
* view.c: Completely rewrote the cursor movement code. Now all
...
cursor movement functions are based on two functions that
translate file offsets into line/column pairs and vice versa.
This change made it possible that the line/column is displayed
in the status line. The beginning-of-line and end-of-line
functions now work in text mode, too. Switching from non-wrap to
wrap mode does not cause the whole file to be loaded.
2005-05-26 09:08:54 +00:00
Roland Illig
d558ddd362
* python.syntax: Added chunk from Savannah bug #7872 . This
...
changes the color for """long strings""" from brown to green and
adds embedded highlighting for escape sequences.
* Syntax: Added a comment introducing the file format, based on
the current implementation in edit/syntax.c. Changed the
first-line regular expressions of sh, perl, python and ruby to
also match @SH@, @PERL@, @PYTHON@ and @RUBY@.
* Syntax: Extended the patterns for #! interpreters to match
almost everything that looks like the interpreter.
2005-05-26 09:08:54 +00:00
Roland Illig
45355775fe
Moved the view_hexview_move_to_eol() function some lines down to make the next patch apply more cleanly.
2005-05-26 09:07:40 +00:00
Roland Illig
0fea1df332
* widget.h: Fixed prototype of input_callback().
2005-05-24 11:50:12 +00:00
Roland Illig
87759863e3
* widget.c: Fixed all but one casts on function pointers.
2005-05-24 11:48:23 +00:00
Roland Illig
603d2f3dc5
* tree.c: Removed function casts and provided wrappers where
...
necessary.
2005-05-23 17:07:21 +00:00
Roland Illig
b4dd15e808
* screen.c: Removed function casts.
2005-05-23 16:44:24 +00:00
Roland Illig
a3e822b6ba
* menu.c: Removed function casts.
2005-05-23 16:39:52 +00:00
Roland Illig
2a21804cc2
* main.h: Changed the type of quiet_quit_cmd() from int to void.
...
* main.c: Likewise. Removed function cast.
2005-05-23 16:37:01 +00:00
Roland Illig
c1a5413eef
* info.c: Removed function casts.
2005-05-23 16:30:44 +00:00
Roland Illig
512aa8120d
* help.c: Removed function casts.
2005-05-23 16:27:33 +00:00
Roland Illig
cbcdeeefbf
* fileopctx.c: Removed unnecessary function casts.
2005-05-23 11:30:07 +00:00
Roland Illig
b8438197e1
* filegui.c: Removed unnecessary function casts.
2005-05-23 11:29:03 +00:00
Roland Illig
12641d520f
* find.c: Removed a function cast by using the wrapper function
...
cstrstr().
2005-05-23 11:28:10 +00:00
Roland Illig
caaf0730b6
* util.h: Added const-preserving version of strstr().
...
* util.c: Likewise.
2005-05-23 11:21:26 +00:00
Roland Illig
de1e263746
* command.c: Removed casts on function pointer types.
2005-05-23 11:17:25 +00:00
Roland Illig
d223460184
* help.c: Fixed the use of check_movement_keys(). This had been
...
really ugly code, involving casts on incompatible functions.
2005-05-23 10:15:45 +00:00
Pavel Roskin
6b494ddd63
* view.c: Better fix for the gcc 4.0.0 warnings. Fix callees
...
rather than callers.
2005-05-23 02:03:29 +00:00
Roland Illig
166e1d20de
* win.h: Removed a const qualifier from the type movefn, as these
...
functions typically modify their object.
* win.c: Likewise.
2005-05-21 10:51:15 +00:00
Roland Illig
9eadb2ada4
* view.c (view_labels): Simplified the code that decides whether
...
the user can switch to hexedit mode.
2005-05-21 10:34:16 +00:00
Roland Illig
0659621de4
Renamed edit_cursor to hex_cursor, as it is
...
used in hexview mode, too.
2005-05-21 10:23:57 +00:00
Roland Illig
48fd4667fd
Changed some comments.
2005-05-21 10:21:35 +00:00
Roland Illig
4138e2d88b
* view.c: Renamed dpy_text_start to dpy_topleft, as it does not
...
only apply to text mode. Renamed dpy_text_start_col to
dpy_text_column.
2005-05-21 10:17:35 +00:00
Roland Illig
8aadbba7d3
* view.c: Fixed comment above toggle_hexedit_mode().
2005-05-21 10:04:03 +00:00
Roland Illig
75691621a6
* view.c: Made the F2 key action much simpler---now it just
...
toggles between hexview and hexedit mode. Switching between text
and hex mode can be done with <tab>, as before.
2005-05-21 10:02:09 +00:00
Pavel Roskin
9d44b75ad5
* find.c: Fix warnings reported by gcc 4.0.0.
...
* mountlist.c: Likewise.
* screen.c: Likewise.
* view.c: Likewise.
2005-05-21 03:26:36 +00:00
Pavel Roskin
9260860bbf
* dialog.c (dlg_select_widget): Remove first argument, it's
...
redundant. Adjust all callers.
(dlg_replace_widget): Likewise.
2005-05-20 20:22:06 +00:00
Roland Illig
10c2c57663
* charsets.c (translate_character): Fixed checking of the return
...
value of iconv().
2005-05-11 21:50:36 +00:00
Pavel Roskin
c90d263d2c
* .c: Sanitize all calls to functions from ctype.h. Fix gcc 4.0
...
warnings.
2005-05-11 01:16:58 +00:00
Pavel Roskin
446c06ea0c
* file.c: Remove unneeded WANT_WIDGETS.
...
* layout.c: Likewise.
* setup.c: Likewise.
* view.c: Likewise.
2005-05-10 21:38:40 +00:00
Roland Illig
3bcac235f5
* find.c (find_parameters): Moved around and reordered dialog
...
items to make their meaning clearer.
2005-05-10 19:30:22 +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
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