mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 12:32:40 +03:00
* 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.
This commit is contained in:
parent
413ed3236e
commit
70f77a1945
@ -1,3 +1,9 @@
|
||||
2005-04-27 Roland Illig <roland.illig@gmx.de>
|
||||
|
||||
* 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-26 Roland Illig <roland.illig@gmx.de>
|
||||
|
||||
* view.c: Added some calls to str_unconst() to get rid of the
|
||||
|
@ -705,7 +705,7 @@ view_load (WView *view, const char *_command, const char *_file,
|
||||
if (start_line > 1 && !error) {
|
||||
int saved_wrap_mode = view->text_wrap_mode;
|
||||
|
||||
view->text_wrap_mode = 0;
|
||||
view->text_wrap_mode = FALSE;
|
||||
get_byte (view, 0);
|
||||
view_move_forward (view, start_line - 1);
|
||||
view->text_wrap_mode = saved_wrap_mode;
|
||||
@ -1967,7 +1967,7 @@ toggle_hexedit_mode (WView *view)
|
||||
static void
|
||||
toggle_wrap_mode (WView *view)
|
||||
{
|
||||
view->text_wrap_mode = 1 - view->text_wrap_mode;
|
||||
view->text_wrap_mode = !view->text_wrap_mode;
|
||||
get_bottom_first (view, 1, 1);
|
||||
if (view->text_wrap_mode)
|
||||
view->dpy_text_start_col = 0;
|
||||
@ -2016,7 +2016,7 @@ goto_line (WView *view)
|
||||
int saved_wrap_mode = view->text_wrap_mode;
|
||||
offset_type i;
|
||||
|
||||
view->text_wrap_mode = 0;
|
||||
view->text_wrap_mode = FALSE;
|
||||
|
||||
/* FIXME: this is awfully slow */
|
||||
for (i = 0; i < view->dpy_text_start; i++)
|
||||
|
Loading…
Reference in New Issue
Block a user