mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-05 11:04:42 +03:00
* editdraw.c (edit_status): Use strcpy (s, ) instead of
sprintf (s, "%s", ). (set_color) [MIDNIGHT]: Became a macro. (render_edit_text) [!defined(MIDNIGHT) && !defined(GTK)]: Warning fix. (edit_render) [GTK]: Eliminate win variable.
This commit is contained in:
parent
6c7bd41428
commit
b5210e40f6
@ -1,3 +1,12 @@
|
|||||||
|
2001-05-31 Andrew V. Samoilov <sav@bcs.zp.ua>
|
||||||
|
|
||||||
|
* editdraw.c (edit_status): Use strcpy (s, ) instead of
|
||||||
|
sprintf (s, "%s", ).
|
||||||
|
|
||||||
|
(set_color) [MIDNIGHT]: Became a macro.
|
||||||
|
(render_edit_text) [!defined(MIDNIGHT) && !defined(GTK)]: Warning fix.
|
||||||
|
(edit_render) [GTK]: Eliminate win variable.
|
||||||
|
|
||||||
2001-05-30 Pavel Roskin <proski@gnu.org>
|
2001-05-30 Pavel Roskin <proski@gnu.org>
|
||||||
|
|
||||||
* editdraw.c (status_string): Use is_printable(). Declare
|
* editdraw.c (status_string): Use is_printable(). Declare
|
||||||
|
@ -4,6 +4,8 @@
|
|||||||
|
|
||||||
Authors: 1996, 1997 Paul Sheer
|
Authors: 1996, 1997 Paul Sheer
|
||||||
|
|
||||||
|
$Id$
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
the Free Software Foundation; either version 2 of the License, or
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
@ -555,12 +557,12 @@ void render_edit_text (WEdit * edit, long start_row, long start_column, long end
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
) {
|
) {
|
||||||
|
#if !defined(MIDNIGHT) && !defined(GTK)
|
||||||
int time_division = 5;
|
int time_division = 5;
|
||||||
#if 0
|
#if 0
|
||||||
if (CPending ())
|
if (CPending ())
|
||||||
time_division--;
|
time_division--;
|
||||||
#endif
|
#endif
|
||||||
#if !defined(MIDNIGHT) && !defined(GTK)
|
|
||||||
if (prev_start < 0)
|
if (prev_start < 0)
|
||||||
prev_start = edit->start_line;
|
prev_start = edit->start_line;
|
||||||
if (option_smooth_scrolling && prev_win == CWindowOf (edit->widget) && !edit->screen_modified) {
|
if (option_smooth_scrolling && prev_win == CWindowOf (edit->widget) && !edit->screen_modified) {
|
||||||
@ -766,9 +768,7 @@ extern int option_long_whitespace;
|
|||||||
void edit_render (WEdit * edit, int page, int row_start, int col_start, int row_end, int col_end)
|
void edit_render (WEdit * edit, int page, int row_start, int col_start, int row_end, int col_end)
|
||||||
{
|
{
|
||||||
int f = 0;
|
int f = 0;
|
||||||
#ifdef GTK
|
|
||||||
GtkEdit *win;
|
|
||||||
#endif
|
|
||||||
if (page) /* if it was an expose event, 'page' would be set */
|
if (page) /* if it was an expose event, 'page' would be set */
|
||||||
edit->force |= REDRAW_PAGE | REDRAW_IN_BOUNDS;
|
edit->force |= REDRAW_PAGE | REDRAW_IN_BOUNDS;
|
||||||
f = edit->force & (REDRAW_PAGE | REDRAW_COMPLETELY);
|
f = edit->force & (REDRAW_PAGE | REDRAW_COMPLETELY);
|
||||||
@ -781,9 +781,7 @@ void edit_render (WEdit * edit, int page, int row_start, int col_start, int row_
|
|||||||
edit_set_space_width (FONT_PER_CHAR[' '] * 2);
|
edit_set_space_width (FONT_PER_CHAR[' '] * 2);
|
||||||
else
|
else
|
||||||
edit_set_space_width (FONT_PER_CHAR[' ']);
|
edit_set_space_width (FONT_PER_CHAR[' ']);
|
||||||
#ifdef GTK
|
|
||||||
win = (GtkEdit *) edit->widget;
|
|
||||||
#endif
|
|
||||||
edit_set_foreground_colors (
|
edit_set_foreground_colors (
|
||||||
color_palette (option_editor_fg_normal),
|
color_palette (option_editor_fg_normal),
|
||||||
color_palette (option_editor_fg_bold),
|
color_palette (option_editor_fg_bold),
|
||||||
|
Loading…
Reference in New Issue
Block a user