Roland Illig
c3ba638d43
* myslang.h: Partly switched to the new tty functions.
2005-08-29 10:02:35 +00:00
Roland Illig
f85a7d8275
Removed unused variable.
2005-08-29 09:40:58 +00:00
Roland Illig
af781d96f8
Added tty.c.
2005-08-29 09:36:32 +00:00
Roland Illig
ab3005ff93
Added a type conversion to view_growbuf_read_until to suppress a gcc
...
warning. Instead of treating various expressions as booleans, compare
them with a 0 of appropriate type.
2005-08-29 09:34:43 +00:00
Roland Illig
0c4c461433
The got_interrupt function from tty.c is defined for ncurses, too.
2005-08-29 09:30:45 +00:00
Roland Illig
132ee7a361
Fixed indentation.
2005-08-29 09:05:24 +00:00
Roland Illig
e223667dc3
Removed trailing white-space.
2005-08-29 09:04:39 +00:00
Roland Illig
a1bf93f138
Changed the prototypes of tty_print_hline and tty_print_vline.
2005-08-29 09:03:10 +00:00
Roland Illig
2a0f1a1cd0
* view.c: Converted to use the new tty functions.
2005-08-29 08:53:28 +00:00
Roland Illig
66332a4fb1
* slint.c: The handling of user interrupts has been moved to ...
...
* tty.c: ... this newly created file, which contains a simple,
not yet complete interface to the terminal library. It should be
used instead of depending directly on ncurses or SLang features.
* tty.h: Added the new function prototypes from tty.c and some
legacy definitions.
2005-08-29 08:45:28 +00:00
Roland Illig
f1452c9580
* view.c (view_new): Separated the mode toggling functions from
...
updating the display. The non-updating functions are called on
initialization.
2005-08-28 20:38:53 +00:00
Roland Illig
1d7b05f8f2
* view.c (view_hexedit_save_changes): Added an assertion that
...
view->filename be not NULL.
* view.c (view_toggle_magic_mode): Check if filename != NULL
before dereferencing the pointer.
* view.c (view_change_nroff_mode_cmd): Renamed to
view_toggle_nroff_mode_cmd.
* view.c (view_new): Don't initialize the various view->mode
variables by now. This needs to be done correctly.
2005-08-28 19:10:00 +00:00
Leonard den Ottolander
1d1af1d099
view.c (view_normal_search_cmd): Initialize exp to avoid freeing of
...
uninitialized pointer on cancel.
2005-08-27 11:35:03 +00:00
Leonard den Ottolander
81d7ee4f51
* key.c (xmouse_get_event): Disable double-click tracking for mouse wheel
...
events.
2005-08-25 20:36:40 +00:00
Marco Ciampa
96a06e0293
Updated italian translation
2005-08-23 11:09:11 +00:00
Marco Ciampa
3b9d19b2b7
Updated italian translation
2005-08-23 11:03:29 +00:00
Marco Ciampa
bf5e61cf3b
Updated italian translation
2005-08-23 10:51:21 +00:00
Marco Ciampa
6f3e2d9b26
Updated italian translation
2005-08-23 10:44:28 +00:00
Roland Illig
55da46b128
* view.c (view_moveto_top): Simplified the code.
2005-08-22 19:19:51 +00:00
Roland Illig
de058c5488
* view.c (view_display_status): In normal display mode (that is:
...
not search progress), calculate the percentage based on dpy_end
instead of dpy_start. This avoids a sudden break to 100 % when
approaching the end of file.
2005-08-22 18:36:51 +00:00
Roland Illig
21640f491d
* view.c (struct WView): Renamed dpy_topleft to dpy_start, as it
...
does not always represent the top-left corner of the screen.
Replaced dpy_complete with dpy_end, the offset of the first byte
after the displayed region.
2005-08-22 18:31:51 +00:00
Roland Illig
5b02f5a27e
* lisp.syntax: Recognize the character sequences \" and \\ in
...
strings.
2005-08-21 15:00:57 +00:00
Roland Illig
c0f14a906d
* view.c: The search string is managed by the WView, not as
...
static variable in some functions.
2005-08-21 12:33:21 +00:00
Roland Illig
7abfd54b97
* view.c (free_change_list): Renamed to
...
view_hexedit_free_change_list.
2005-08-21 12:04:20 +00:00
Roland Illig
135ce37fef
* view.c (view_done): Reordered the statements in the
...
destructor and added paragraph comments.
2005-08-21 11:57:45 +00:00
Roland Illig
2081f5f9fa
* fileloc.h: Newly added this file, which provides a place where
...
all names of user specific configuration files are listed.
2005-08-21 04:00:43 +00:00
Roland Illig
03bdc998ca
* view.h: Rewrote it. All functions are preceded by a describing
...
comment and the "extern" keyword.
2005-08-21 03:32:17 +00:00
Roland Illig
0d4be87ff8
* view.c: Added section headers. The functions are still
...
somewhat unordered. Renamed some functions to fit into the
view_*_cmd naming convention.
2005-08-19 19:32:02 +00:00
Roland Illig
6baf73cfd9
Removed the rant from my commit message to make Pavel Tsekov happy.
2005-08-19 13:42:59 +00:00
David Martin
efba14ffa7
Update Spanish translation.
2005-08-19 09:12:41 +00:00
David Martin
e97997b2ba
Do translate dialog strings, not just mark.
2005-08-19 09:10:07 +00:00
Roland Illig
99f3df1591
* screen.c (string_file_name): Increased the buffer size to
...
MC_MAXPATHLEN + 1 bytes to avoid filename truncation.
2005-08-18 04:40:45 +00:00
Roland Illig
541c12241f
* view.c (struct WView): Renamed found_len to search_length.
2005-08-18 04:11:52 +00:00
Roland Illig
0601d83324
* view.c (view_display_text): Removed the (almost) unused
...
variable boldflag.
2005-08-18 03:50:29 +00:00
Roland Illig
b7cba56d21
* view.c (view_display_hex): Completely rewritten. Now the code
...
distinguishes several phases (state selection, color selection,
printing) and does not mix them wildly, as the previous code
did.
2005-08-18 03:33:33 +00:00
Roland Illig
ba8ba542f0
* view.c (view_move_up): Don't scroll up if it is not necessary.
...
This fixes an inconsistency noted by Andrej Zebrowski on
mc-devel.
* view.c (view_move_down): Do nothing if we're already at the
end of the file. This makes the cursor movement more consistent
with the behavior of the <End> key.
* view.c (regexp_search_cmd): Moved the code to save the changes
of the hex editor out of this function. Whoever wrote that
should be blamed for it, but the code has been there since the
beginning.
2005-08-18 02:26:39 +00:00
Roland Illig
01432587b8
Changed the return type of view_toggle_ruler() to void.
2005-08-16 09:04:29 +00:00
Roland Illig
ad29def0c4
* view.c (view_init_growbuf): Mark the first page full instead
...
of empty. This saves one condition in view_growbuf_read_until().
2005-08-16 08:59:14 +00:00
Roland Illig
03d2e06c41
Layout change for better readability.
2005-08-16 08:51:55 +00:00
Roland Illig
0deeec756e
Added some white-space for better readability. The coordinates of the
...
status line are computed like the other ones (was implicit before).
2005-08-16 08:47:15 +00:00
Roland Illig
9758c34a82
Added some white-space for better readability.
2005-08-16 08:37:05 +00:00
Roland Illig
c2564e99f6
* view.c (view_place_cursor): Made the call to widget_move()
...
look like the other calls.
2005-08-16 08:22:07 +00:00
Roland Illig
7b35eaa34d
* view.c (view_percent): Fixed coordinate computation.
2005-08-16 08:16:12 +00:00
Roland Illig
d76dc9218b
Fixed a typo in a comment.
2005-08-16 08:00:15 +00:00
Roland Illig
ae3c8a324d
Don't mix enums with ints.
2005-08-15 22:59:20 +00:00
Roland Illig
08a40c8d17
* screen.c (use_display_format): Removed unused variable.
2005-08-15 22:40:58 +00:00
Roland Illig
5c7a219b36
Don't mix enums with ints.
2005-08-15 22:36:53 +00:00
Roland Illig
4e3e810973
* complete.c: Don't mix enums with ints.
2005-08-15 22:33:20 +00:00
Roland Illig
a94e34c698
* complete.c (fetch_hosts): Removed unused variable.
2005-08-15 22:30:36 +00:00
Roland Illig
b973c398dc
* view.c (view_toggle_ruler): Don't mix enums with ints.
2005-08-15 21:59:08 +00:00