view               87 src/viewer/actions_cmd.c mcview_remove_ext_script (WView * view)
view               89 src/viewer/actions_cmd.c     if (view->ext_script != NULL)
view               91 src/viewer/actions_cmd.c         mc_unlink (view->ext_script);
view               92 src/viewer/actions_cmd.c         vfs_path_free (view->ext_script);
view               93 src/viewer/actions_cmd.c         view->ext_script = NULL;
view              101 src/viewer/actions_cmd.c mcview_search (WView * view, gboolean start_search)
view              103 src/viewer/actions_cmd.c     off_t want_search_start = view->search_start;
view              107 src/viewer/actions_cmd.c         if (mcview_dialog_search (view))
view              109 src/viewer/actions_cmd.c             if (view->mode_flags.hex)
view              110 src/viewer/actions_cmd.c                 want_search_start = view->hex_cursor;
view              112 src/viewer/actions_cmd.c             mcview_do_search (view, want_search_start);
view              117 src/viewer/actions_cmd.c         if (view->mode_flags.hex)
view              120 src/viewer/actions_cmd.c                 want_search_start = view->hex_cursor + 1;
view              121 src/viewer/actions_cmd.c             else if (view->hex_cursor > 0)
view              122 src/viewer/actions_cmd.c                 want_search_start = view->hex_cursor - 1;
view              127 src/viewer/actions_cmd.c         mcview_do_search (view, want_search_start);
view              134 src/viewer/actions_cmd.c mcview_continue_search_cmd (WView * view)
view              136 src/viewer/actions_cmd.c     if (view->last_search_string != NULL)
view              137 src/viewer/actions_cmd.c         mcview_search (view, FALSE);
view              146 src/viewer/actions_cmd.c             view->last_search_string = (gchar *) g_strdup (history->data);
view              151 src/viewer/actions_cmd.c             view->search = mc_search_new (view->last_search_string, cp_source);
view              153 src/viewer/actions_cmd.c             view->search = mc_search_new (view->last_search_string, NULL);
view              155 src/viewer/actions_cmd.c             view->search_nroff_seq = mcview_nroff_seq_new (view);
view              157 src/viewer/actions_cmd.c             if (view->search == NULL)
view              160 src/viewer/actions_cmd.c                 MC_PTR_FREE (view->last_search_string);
view              161 src/viewer/actions_cmd.c                 mcview_search (view, TRUE);
view              165 src/viewer/actions_cmd.c                 view->search->search_type = mcview_search_options.type;
view              167 src/viewer/actions_cmd.c                 view->search->is_all_charsets = mcview_search_options.all_codepages;
view              169 src/viewer/actions_cmd.c                 view->search->is_case_sensitive = mcview_search_options.case_sens;
view              170 src/viewer/actions_cmd.c                 view->search->whole_words = mcview_search_options.whole_words;
view              171 src/viewer/actions_cmd.c                 view->search->search_fn = mcview_search_cmd_callback;
view              172 src/viewer/actions_cmd.c                 view->search->update_fn = mcview_search_update_cmd_callback;
view              174 src/viewer/actions_cmd.c                 mcview_search (view, FALSE);
view              180 src/viewer/actions_cmd.c             MC_PTR_FREE (view->last_search_string);
view              181 src/viewer/actions_cmd.c             mcview_search (view, TRUE);
view              191 src/viewer/actions_cmd.c     WView *view = (WView *) v;
view              212 src/viewer/actions_cmd.c     mcview_done (view);
view              213 src/viewer/actions_cmd.c     mcview_init (view);
view              214 src/viewer/actions_cmd.c     mcview_load (view, 0, panel->dir.list[panel->selected].fname, 0, 0, 0);
view              215 src/viewer/actions_cmd.c     mcview_display (view);
view              221 src/viewer/actions_cmd.c mcview_handle_editkey (WView * view, int key)
view              227 src/viewer/actions_cmd.c     node = view->change_list;
view              228 src/viewer/actions_cmd.c     while ((node != NULL) && (node->offset != view->hex_cursor))
view              231 src/viewer/actions_cmd.c     if (!view->hexview_in_text)
view              248 src/viewer/actions_cmd.c             mcview_get_byte (view, view->hex_cursor, &byte_val);
view              250 src/viewer/actions_cmd.c         if (view->hexedit_lownibble)
view              264 src/viewer/actions_cmd.c     if ((view->filename_vpath != NULL)
view              265 src/viewer/actions_cmd.c         && (*(vfs_path_get_last_path_str (view->filename_vpath)) != '\0')
view              266 src/viewer/actions_cmd.c         && (view->change_list == NULL))
view              267 src/viewer/actions_cmd.c         view->locked = lock_file (view->filename_vpath);
view              272 src/viewer/actions_cmd.c         node->offset = view->hex_cursor;
view              274 src/viewer/actions_cmd.c         mcview_enqueue_change (&view->change_list, node);
view              279 src/viewer/actions_cmd.c     view->dirty++;
view              280 src/viewer/actions_cmd.c     mcview_move_right (view, 1);
view              288 src/viewer/actions_cmd.c mcview_load_next_prev_init (WView * view)
view              293 src/viewer/actions_cmd.c         view->dir = &current_panel->dir;
view              294 src/viewer/actions_cmd.c         view->dir_idx = &current_panel->selected;
view              296 src/viewer/actions_cmd.c     else if (view->dir == NULL)
view              306 src/viewer/actions_cmd.c         view->dir = g_new0 (dir_list, 1);
view              307 src/viewer/actions_cmd.c         view->dir_idx = g_new (int, 1);
view              310 src/viewer/actions_cmd.c             (view->dir, view->workdir_vpath, (GCompareFunc) sort_name, &sort_op, NULL))
view              316 src/viewer/actions_cmd.c             fname = x_basename (vfs_path_as_str (view->filename_vpath));
view              320 src/viewer/actions_cmd.c             for (i = 0; i != view->dir->len; i++)
view              322 src/viewer/actions_cmd.c                 const file_entry_t *fe = &view->dir->list[i];
view              328 src/viewer/actions_cmd.c             *view->dir_idx = i;
view              333 src/viewer/actions_cmd.c             MC_PTR_FREE (view->dir);
view              334 src/viewer/actions_cmd.c             MC_PTR_FREE (view->dir_idx);
view              342 src/viewer/actions_cmd.c mcview_scan_for_file (WView * view, int direction)
view              346 src/viewer/actions_cmd.c     for (i = *view->dir_idx + direction; i != *view->dir_idx; i += direction)
view              349 src/viewer/actions_cmd.c             i = view->dir->len - 1;
view              350 src/viewer/actions_cmd.c         if (i == view->dir->len)
view              352 src/viewer/actions_cmd.c         if (!S_ISDIR (view->dir->list[i].st.st_mode))
view              356 src/viewer/actions_cmd.c     *view->dir_idx = i;
view              362 src/viewer/actions_cmd.c mcview_load_next_prev (WView * view, int direction)
view              369 src/viewer/actions_cmd.c     mcview_load_next_prev_init (view);
view              370 src/viewer/actions_cmd.c     mcview_scan_for_file (view, direction);
view              373 src/viewer/actions_cmd.c     dir = view->dir;
view              374 src/viewer/actions_cmd.c     dir_idx = view->dir_idx;
view              375 src/viewer/actions_cmd.c     view->dir = NULL;
view              376 src/viewer/actions_cmd.c     view->dir_idx = NULL;
view              377 src/viewer/actions_cmd.c     vfile = vfs_path_append_new (view->workdir_vpath, dir->list[*dir_idx].fname, (char *) NULL);
view              378 src/viewer/actions_cmd.c     mcview_done (view);
view              379 src/viewer/actions_cmd.c     mcview_remove_ext_script (view);
view              380 src/viewer/actions_cmd.c     mcview_init (view);
view              381 src/viewer/actions_cmd.c     if (regex_command_for (view, vfile, "View", &ext_script) == 0)
view              382 src/viewer/actions_cmd.c         mcview_load (view, NULL, vfs_path_as_str (vfile), 0, 0, 0);
view              384 src/viewer/actions_cmd.c     view->dir = dir;
view              385 src/viewer/actions_cmd.c     view->dir_idx = dir_idx;
view              386 src/viewer/actions_cmd.c     view->ext_script = ext_script;
view              388 src/viewer/actions_cmd.c     view->dpy_bbar_dirty = FALSE;       /* FIXME */
view              389 src/viewer/actions_cmd.c     view->dirty++;
view              395 src/viewer/actions_cmd.c mcview_load_file_from_history (WView * view)
view              400 src/viewer/actions_cmd.c     filename = show_file_history (CONST_WIDGET (view), &action);
view              404 src/viewer/actions_cmd.c         mcview_done (view);
view              405 src/viewer/actions_cmd.c         mcview_init (view);
view              407 src/viewer/actions_cmd.c         mcview_load (view, NULL, filename, 0, 0, 0);
view              409 src/viewer/actions_cmd.c         view->dpy_bbar_dirty = FALSE;   /* FIXME */
view              410 src/viewer/actions_cmd.c         view->dirty++;
view              419 src/viewer/actions_cmd.c mcview_execute_cmd (WView * view, long command)
view              433 src/viewer/actions_cmd.c         mcview_toggle_hex_mode (view);
view              437 src/viewer/actions_cmd.c         mcview_toggle_hexedit_mode (view);
view              440 src/viewer/actions_cmd.c         view->hexview_in_text = !view->hexview_in_text;
view              441 src/viewer/actions_cmd.c         view->dirty++;
view              444 src/viewer/actions_cmd.c         if (!view->mode_flags.hex)
view              445 src/viewer/actions_cmd.c             mcview_move_left (view, 10);
view              448 src/viewer/actions_cmd.c         if (!view->mode_flags.hex)
view              449 src/viewer/actions_cmd.c             mcview_move_right (view, 10);
view              455 src/viewer/actions_cmd.c             if (mcview_dialog_goto (view, &addr))
view              458 src/viewer/actions_cmd.c                     mcview_moveto_offset (view, addr);
view              462 src/viewer/actions_cmd.c                     view->dirty++;
view              468 src/viewer/actions_cmd.c         mcview_hexedit_save_changes (view);
view              471 src/viewer/actions_cmd.c         mcview_search (view, TRUE);
view              474 src/viewer/actions_cmd.c         mcview_continue_search_cmd (view);
view              478 src/viewer/actions_cmd.c         mcview_search (view, TRUE);
view              482 src/viewer/actions_cmd.c         mcview_continue_search_cmd (view);
view              486 src/viewer/actions_cmd.c         mcview_search (view, TRUE);
view              490 src/viewer/actions_cmd.c         mcview_continue_search_cmd (view);
view              498 src/viewer/actions_cmd.c             mcview_continue_search_cmd (view);
view              504 src/viewer/actions_cmd.c         mcview_toggle_wrap_mode (view);
view              507 src/viewer/actions_cmd.c         mcview_toggle_magic_mode (view);
view              510 src/viewer/actions_cmd.c         mcview_toggle_nroff_mode (view);
view              513 src/viewer/actions_cmd.c         mcview_moveto_bol (view);
view              516 src/viewer/actions_cmd.c         mcview_moveto_eol (view);
view              519 src/viewer/actions_cmd.c         mcview_move_left (view, 1);
view              522 src/viewer/actions_cmd.c         mcview_move_right (view, 1);
view              525 src/viewer/actions_cmd.c         mcview_move_up (view, 1);
view              528 src/viewer/actions_cmd.c         mcview_move_down (view, 1);
view              531 src/viewer/actions_cmd.c         mcview_move_up (view, (view->data_area.height + 1) / 2);
view              534 src/viewer/actions_cmd.c         mcview_move_down (view, (view->data_area.height + 1) / 2);
view              537 src/viewer/actions_cmd.c         mcview_move_up (view, view->data_area.height);
view              540 src/viewer/actions_cmd.c         mcview_move_down (view, view->data_area.height);
view              543 src/viewer/actions_cmd.c         mcview_moveto_top (view);
view              546 src/viewer/actions_cmd.c         mcview_moveto_bottom (view);
view              552 src/viewer/actions_cmd.c         mcview_display_toggle_ruler (view);
view              555 src/viewer/actions_cmd.c         view->dpy_start = view->marks[view->marker];
view              556 src/viewer/actions_cmd.c         view->dpy_paragraph_skip_lines = 0;     /* TODO: remember this value in the marker? */
view              557 src/viewer/actions_cmd.c         view->dpy_wrap_dirty = TRUE;
view              558 src/viewer/actions_cmd.c         view->dirty++;
view              561 src/viewer/actions_cmd.c         view->marks[view->marker] = view->dpy_start;
view              565 src/viewer/actions_cmd.c         mcview_select_encoding (view);
view              566 src/viewer/actions_cmd.c         view->dirty++;
view              572 src/viewer/actions_cmd.c         if (!mcview_is_in_panel (view))
view              573 src/viewer/actions_cmd.c             mcview_load_next_prev (view, command == CK_FileNext ? 1 : -1);
view              576 src/viewer/actions_cmd.c         mcview_load_file_from_history (view);
view              579 src/viewer/actions_cmd.c         if (!mcview_is_in_panel (view))
view              580 src/viewer/actions_cmd.c             dlg_stop (WIDGET (view)->owner);
view              594 src/viewer/actions_cmd.c mcview_handle_key (WView * view, int key)
view              602 src/viewer/actions_cmd.c     if (view->mode_flags.hex)
view              604 src/viewer/actions_cmd.c         if (view->hexedit_mode && (mcview_handle_editkey (view, key) == MSG_HANDLED))
view              608 src/viewer/actions_cmd.c         if ((command != CK_IgnoreKey) && (mcview_execute_cmd (view, command) == MSG_HANDLED))
view              613 src/viewer/actions_cmd.c     if ((command != CK_IgnoreKey) && (mcview_execute_cmd (view, command) == MSG_HANDLED))
view              619 src/viewer/actions_cmd.c         mcview_ccache_dump (view);
view              624 src/viewer/actions_cmd.c         view->marker = key - '0';
view              634 src/viewer/actions_cmd.c mcview_resize (WView * view)
view              636 src/viewer/actions_cmd.c     view->dpy_wrap_dirty = TRUE;
view              637 src/viewer/actions_cmd.c     mcview_compute_areas (view);
view              638 src/viewer/actions_cmd.c     mcview_update_bytes_per_line (view);
view              644 src/viewer/actions_cmd.c mcview_ok_to_quit (WView * view)
view              648 src/viewer/actions_cmd.c     if (view->change_list == NULL)
view              671 src/viewer/actions_cmd.c         return mcview_hexedit_save_changes (view) || mc_global.midnight_shutdown;
view              673 src/viewer/actions_cmd.c         mcview_hexedit_free_change_list (view);
view              687 src/viewer/actions_cmd.c     WView *view = (WView *) w;
view              690 src/viewer/actions_cmd.c     mcview_compute_areas (view);
view              691 src/viewer/actions_cmd.c     mcview_update_bytes_per_line (view);
view              696 src/viewer/actions_cmd.c         if (mcview_is_in_panel (view))
view              697 src/viewer/actions_cmd.c             add_hook (&select_file_hook, mcview_hook, view);
view              699 src/viewer/actions_cmd.c             view->dpy_bbar_dirty = TRUE;
view              703 src/viewer/actions_cmd.c         mcview_display (view);
view              707 src/viewer/actions_cmd.c         if (view->mode_flags.hex)
view              708 src/viewer/actions_cmd.c             mcview_place_cursor (view);
view              712 src/viewer/actions_cmd.c         i = mcview_handle_key (view, parm);
view              713 src/viewer/actions_cmd.c         mcview_update (view);
view              717 src/viewer/actions_cmd.c         i = mcview_execute_cmd (view, parm);
view              718 src/viewer/actions_cmd.c         mcview_update (view);
view              722 src/viewer/actions_cmd.c         view->dpy_bbar_dirty = TRUE;
view              724 src/viewer/actions_cmd.c         mcview_update (view);
view              728 src/viewer/actions_cmd.c         mcview_resize (view);
view              732 src/viewer/actions_cmd.c         if (mcview_is_in_panel (view))
view              758 src/viewer/actions_cmd.c                 mcview_ok_to_quit (view);
view              760 src/viewer/actions_cmd.c         mcview_done (view);
view              761 src/viewer/actions_cmd.c         mcview_remove_ext_script (view);
view              775 src/viewer/actions_cmd.c     WView *view;
view              787 src/viewer/actions_cmd.c         view = (WView *) find_widget_type (h, mcview_callback);
view              790 src/viewer/actions_cmd.c         if (mcview_ok_to_quit (view))
view              793 src/viewer/actions_cmd.c             mcview_update (view);
view              207 src/viewer/ascii.c mcview_wcwidth (const WView * view, int c)
view              210 src/viewer/ascii.c     if (view->utf8)
view              218 src/viewer/ascii.c     (void) view;
view              227 src/viewer/ascii.c mcview_ismark (const WView * view, int c)
view              230 src/viewer/ascii.c     if (view->utf8)
view              233 src/viewer/ascii.c     (void) view;
view              243 src/viewer/ascii.c mcview_is_non_spacing_mark (const WView * view, int c)
view              246 src/viewer/ascii.c     if (view->utf8)
view              255 src/viewer/ascii.c     (void) view;
view              265 src/viewer/ascii.c mcview_is_spacing_mark (const WView * view, int c)
view              268 src/viewer/ascii.c     if (view->utf8)
view              271 src/viewer/ascii.c     (void) view;
view              281 src/viewer/ascii.c mcview_isprint (const WView * view, int c)
view              284 src/viewer/ascii.c     if (!view->utf8)
view              285 src/viewer/ascii.c         c = convert_from_8bit_to_utf_c ((unsigned char) c, view->converter);
view              288 src/viewer/ascii.c     (void) view;
view              297 src/viewer/ascii.c mcview_char_display (const WView * view, int c, char *s)
view              302 src/viewer/ascii.c         if (!view->utf8)
view              303 src/viewer/ascii.c             c = convert_from_8bit_to_utf_c ((unsigned char) c, view->converter);
view              308 src/viewer/ascii.c     if (view->utf8)
view              318 src/viewer/ascii.c         c = convert_from_utf_to_current_c (c, view->converter);
view              326 src/viewer/ascii.c     (void) view;
view              350 src/viewer/ascii.c mcview_get_next_char (WView * view, mcview_state_machine_t * state, int *c)
view              353 src/viewer/ascii.c     if (view->force_max >= 0 && state->offset >= view->force_max)
view              357 src/viewer/ascii.c     if (view->utf8)
view              361 src/viewer/ascii.c         if (!mcview_get_utf (view, state->offset, c, &char_length))
view              364 src/viewer/ascii.c         if (view->force_max >= 0 && state->offset + char_length > view->force_max)
view              371 src/viewer/ascii.c     if (!mcview_get_byte (view, state->offset, c))
view              397 src/viewer/ascii.c mcview_get_next_maybe_nroff_char (WView * view, mcview_state_machine_t * state, int *c, int *color)
view              405 src/viewer/ascii.c     if (!view->mode_flags.nroff)
view              406 src/viewer/ascii.c         return mcview_get_next_char (view, state, c);
view              408 src/viewer/ascii.c     if (!mcview_get_next_char (view, state, c))
view              411 src/viewer/ascii.c     if (!mcview_isprint (view, *c))
view              416 src/viewer/ascii.c     if (!mcview_get_next_char (view, &state_after_nroff, &c2))
view              421 src/viewer/ascii.c     if (!mcview_get_next_char (view, &state_after_nroff, &c3))
view              423 src/viewer/ascii.c     if (!mcview_isprint (view, c3))
view              480 src/viewer/ascii.c mcview_next_combining_char_sequence (WView * view, mcview_state_machine_t * state, int *cs,
view              485 src/viewer/ascii.c     if (!mcview_get_next_maybe_nroff_char (view, state, cs, color))
view              494 src/viewer/ascii.c         if (mcview_get_next_maybe_nroff_char (view, &state_after_crlf, &cnext, NULL)
view              502 src/viewer/ascii.c     if (!mcview_isprint (view, cs[0]))
view              505 src/viewer/ascii.c     if (mcview_ismark (view, cs[0]))
view              521 src/viewer/ascii.c     if (mcview_wcwidth (view, cs[0]) == 2)
view              534 src/viewer/ascii.c         if (!mcview_get_next_maybe_nroff_char (view, &state_after_combining, &cs[i], NULL))
view              536 src/viewer/ascii.c         if (!mcview_ismark (view, cs[i]) || !mcview_isprint (view, cs[i]))
view              579 src/viewer/ascii.c mcview_display_line (WView * view, mcview_state_machine_t * state, int row,
view              582 src/viewer/ascii.c     const screen_dimen left = view->data_area.left;
view              583 src/viewer/ascii.c     const screen_dimen top = view->data_area.top;
view              584 src/viewer/ascii.c     const screen_dimen width = view->data_area.width;
view              585 src/viewer/ascii.c     const screen_dimen height = view->data_area.height;
view              586 src/viewer/ascii.c     off_t dpy_text_column = view->mode_flags.wrap ? 0 : view->dpy_text_column;
view              595 src/viewer/ascii.c     if (!view->mode_flags.wrap && (row < 0 || row >= (int) height) && linewidth == NULL)
view              602 src/viewer/ascii.c         eol = mcview_eol (view, state->offset);
view              617 src/viewer/ascii.c         n = mcview_next_combining_char_sequence (view, state, cs, 1 + MAX_COMBINING_CHARS, &color);
view              625 src/viewer/ascii.c         if (view->search_start <= state->offset && state->offset < view->search_end)
view              637 src/viewer/ascii.c         if (mcview_is_non_spacing_mark (view, cs[0]))
view              644 src/viewer/ascii.c         if ((!mcview_isprint (view, cs[0]) || mcview_ismark (view, cs[0])) && cs[0] != '\t')
view              648 src/viewer/ascii.c             charwidth += mcview_wcwidth (view, cs[i]);
view              664 src/viewer/ascii.c         if (view->mode_flags.wrap && (off_t) col + charwidth > dpy_text_column + (off_t) width
view              683 src/viewer/ascii.c                 widget_move (view, top + row, left + ((off_t) col - dpy_text_column));
view              693 src/viewer/ascii.c                         j += mcview_char_display (view, cs[i], str + j);
view              711 src/viewer/ascii.c                     widget_move (view, top + row, left + (i - dpy_text_column));
view              724 src/viewer/ascii.c                     widget_move (view, top + row, left + (i - dpy_text_column));
view              733 src/viewer/ascii.c         if (!view->mode_flags.wrap && (off_t) col >= dpy_text_column + (off_t) width
view              740 src/viewer/ascii.c             eol = mcview_eol (view, state->offset);
view              774 src/viewer/ascii.c mcview_display_paragraph (WView * view, mcview_state_machine_t * state, int row)
view              776 src/viewer/ascii.c     const screen_dimen height = view->data_area.height;
view              783 src/viewer/ascii.c         lines += mcview_display_line (view, state, row, &paragraph_ended, NULL);
view              811 src/viewer/ascii.c mcview_wrap_fixup (WView * view)
view              813 src/viewer/ascii.c     int lines = view->dpy_paragraph_skip_lines;
view              815 src/viewer/ascii.c     if (!view->dpy_wrap_dirty)
view              817 src/viewer/ascii.c     view->dpy_wrap_dirty = FALSE;
view              819 src/viewer/ascii.c     view->dpy_paragraph_skip_lines = 0;
view              820 src/viewer/ascii.c     mcview_state_machine_init (&view->dpy_state_top, view->dpy_start);
view              827 src/viewer/ascii.c         state_prev = view->dpy_state_top;
view              828 src/viewer/ascii.c         if (mcview_display_line (view, &view->dpy_state_top, -1, &paragraph_ended, NULL) == 0)
view              832 src/viewer/ascii.c             view->dpy_state_top = state_prev;
view              835 src/viewer/ascii.c         view->dpy_paragraph_skip_lines++;
view              855 src/viewer/ascii.c mcview_display_text (WView * view)
view              857 src/viewer/ascii.c     const screen_dimen left = view->data_area.left;
view              858 src/viewer/ascii.c     const screen_dimen top = view->data_area.top;
view              859 src/viewer/ascii.c     const screen_dimen height = view->data_area.height;
view              870 src/viewer/ascii.c         mcview_display_clean (view);
view              871 src/viewer/ascii.c         mcview_display_ruler (view);
view              873 src/viewer/ascii.c         if (!view->mode_flags.wrap)
view              874 src/viewer/ascii.c             mcview_state_machine_init (&state, view->dpy_start);
view              877 src/viewer/ascii.c             mcview_wrap_fixup (view);
view              878 src/viewer/ascii.c             state = view->dpy_state_top;
view              883 src/viewer/ascii.c             n = mcview_display_paragraph (view, &state, row);
view              891 src/viewer/ascii.c                 if ((view->mode_flags.wrap ? view->dpy_state_top.offset : view->dpy_start) > 0)
view              893 src/viewer/ascii.c                     mcview_ascii_move_up (view, height - row);
view              902 src/viewer/ascii.c     view->dpy_end = state.offset;
view              903 src/viewer/ascii.c     view->dpy_state_bottom = state;
view              909 src/viewer/ascii.c             widget_move (view, top + row, left);
view              929 src/viewer/ascii.c mcview_ascii_move_down (WView * view, off_t lines)
view              938 src/viewer/ascii.c         if (mcview_display_line (view, &view->dpy_state_bottom, -1, &paragraph_ended, NULL) == 0)
view              943 src/viewer/ascii.c         if (!view->mode_flags.wrap)
view              945 src/viewer/ascii.c             view->dpy_start = mcview_eol (view, view->dpy_start);
view              946 src/viewer/ascii.c             view->dpy_paragraph_skip_lines = 0;
view              947 src/viewer/ascii.c             view->dpy_wrap_dirty = TRUE;
view              951 src/viewer/ascii.c             mcview_display_line (view, &view->dpy_state_top, -1, &paragraph_ended, NULL);
view              953 src/viewer/ascii.c                 view->dpy_paragraph_skip_lines++;
view              956 src/viewer/ascii.c                 view->dpy_start = view->dpy_state_top.offset;
view              957 src/viewer/ascii.c                 view->dpy_paragraph_skip_lines = 0;
view              978 src/viewer/ascii.c mcview_ascii_move_up (WView * view, off_t lines)
view              980 src/viewer/ascii.c     if (!view->mode_flags.wrap)
view              983 src/viewer/ascii.c             view->dpy_start = mcview_bol (view, view->dpy_start - 1, 0);
view              984 src/viewer/ascii.c         view->dpy_paragraph_skip_lines = 0;
view              985 src/viewer/ascii.c         view->dpy_wrap_dirty = TRUE;
view              991 src/viewer/ascii.c         while (lines > view->dpy_paragraph_skip_lines)
view              994 src/viewer/ascii.c             if (view->dpy_start == 0)
view              997 src/viewer/ascii.c                 view->dpy_paragraph_skip_lines = 0;
view              998 src/viewer/ascii.c                 mcview_state_machine_init (&view->dpy_state_top, 0);
view             1001 src/viewer/ascii.c             lines -= view->dpy_paragraph_skip_lines;
view             1002 src/viewer/ascii.c             view->force_max = view->dpy_start;
view             1003 src/viewer/ascii.c             view->dpy_start =
view             1004 src/viewer/ascii.c                 mcview_bol (view, view->dpy_start - 1,
view             1005 src/viewer/ascii.c                             view->dpy_start - MAX_BACKWARDS_WALK_IN_PARAGRAPH);
view             1006 src/viewer/ascii.c             mcview_state_machine_init (&view->dpy_state_top, view->dpy_start);
view             1010 src/viewer/ascii.c             view->dpy_paragraph_skip_lines =
view             1011 src/viewer/ascii.c                 mcview_display_paragraph (view, &view->dpy_state_top, view->data_area.height);
view             1012 src/viewer/ascii.c             view->force_max = -1;
view             1018 src/viewer/ascii.c         mcview_state_machine_init (&view->dpy_state_top, view->dpy_start);
view             1019 src/viewer/ascii.c         view->dpy_paragraph_skip_lines -= lines;
view             1020 src/viewer/ascii.c         for (i = 0; i < view->dpy_paragraph_skip_lines; i++)
view             1021 src/viewer/ascii.c             mcview_display_line (view, &view->dpy_state_top, -1, NULL, NULL);
view             1028 src/viewer/ascii.c mcview_ascii_moveto_bol (WView * view)
view             1030 src/viewer/ascii.c     if (!view->mode_flags.wrap)
view             1031 src/viewer/ascii.c         view->dpy_text_column = 0;
view             1037 src/viewer/ascii.c mcview_ascii_moveto_eol (WView * view)
view             1039 src/viewer/ascii.c     if (!view->mode_flags.wrap)
view             1045 src/viewer/ascii.c         mcview_state_machine_init (&state, view->dpy_start);
view             1046 src/viewer/ascii.c         mcview_display_line (view, &state, -1, NULL, &linewidth);
view             1047 src/viewer/ascii.c         view->dpy_text_column = mcview_offset_doz (linewidth, (off_t) view->data_area.width);
view              144 src/viewer/coord_cache.c mcview_ccache_find (WView * view, const coord_cache_entry_t * coord, cmp_func_t cmp_func)
view              147 src/viewer/coord_cache.c     size_t limit = view->coord_cache->size;
view              156 src/viewer/coord_cache.c         if (cmp_func (coord, view->coord_cache->cache[i]))
view              209 src/viewer/coord_cache.c mcview_ccache_dump (WView * view)
view              214 src/viewer/coord_cache.c     const coord_cache_t *cache = view->coord_cache;
view              218 src/viewer/coord_cache.c     filesize = mcview_get_filesize (view);
view              243 src/viewer/coord_cache.c         mcview_offset_to_coord (view, &line, &column, offset);
view              252 src/viewer/coord_cache.c         mcview_coord_to_offset (view, &nextline_offset, line + 1, 0);
view              257 src/viewer/coord_cache.c             mcview_coord_to_offset (view, &offset, line, column);
view              281 src/viewer/coord_cache.c mcview_ccache_lookup (WView * view, coord_cache_entry_t * coord, enum ccache_type lookup_what)
view              297 src/viewer/coord_cache.c     if (view->coord_cache == NULL)
view              298 src/viewer/coord_cache.c         view->coord_cache = coord_cache_new ();
view              300 src/viewer/coord_cache.c     cache = view->coord_cache;
view              315 src/viewer/coord_cache.c     else if (view->mode_flags.nroff)
view              325 src/viewer/coord_cache.c     i = mcview_ccache_find (view, coord, cmp_func);
view              329 src/viewer/coord_cache.c     if (i + 1 < view->coord_cache->size)
view              340 src/viewer/coord_cache.c         if (!mcview_get_byte (view, current.cc_offset, &c))
view              345 src/viewer/coord_cache.c             if (lookup_what == CCACHE_OFFSET && view->mode_flags.nroff
view              367 src/viewer/coord_cache.c             mcview_get_byte_indexed (view, current.cc_offset, 1, &nextc);
view              413 src/viewer/coord_cache.c             nroff_state = mcview_is_nroff_sequence (view, current.cc_offset)
view               77 src/viewer/datasource.c mcview_set_datasource_stdio_pipe (WView * view, mc_pipe_t * p)
view               83 src/viewer/datasource.c     view->datasource = DS_STDIO_PIPE;
view               84 src/viewer/datasource.c     view->ds_stdio_pipe = p;
view               85 src/viewer/datasource.c     view->pipe_first_err_msg = TRUE;
view               87 src/viewer/datasource.c     mcview_growbuf_init (view);
view               95 src/viewer/datasource.c mcview_set_datasource_none (WView * view)
view               97 src/viewer/datasource.c     view->datasource = DS_NONE;
view              103 src/viewer/datasource.c mcview_get_filesize (WView * view)
view              105 src/viewer/datasource.c     switch (view->datasource)
view              109 src/viewer/datasource.c         return mcview_growbuf_filesize (view);
view              111 src/viewer/datasource.c         return view->ds_file_filesize;
view              113 src/viewer/datasource.c         return view->ds_string_len;
view              122 src/viewer/datasource.c mcview_update_filesize (WView * view)
view              124 src/viewer/datasource.c     if (view->datasource == DS_FILE)
view              127 src/viewer/datasource.c         if (mc_fstat (view->ds_file_fd, &st) != -1)
view              128 src/viewer/datasource.c             view->ds_file_filesize = st.st_size;
view              135 src/viewer/datasource.c mcview_get_ptr_file (WView * view, off_t byte_index)
view              137 src/viewer/datasource.c     g_assert (view->datasource == DS_FILE);
view              139 src/viewer/datasource.c     mcview_file_load_data (view, byte_index);
view              140 src/viewer/datasource.c     if (mcview_already_loaded (view->ds_file_offset, byte_index, view->ds_file_datalen))
view              141 src/viewer/datasource.c         return (char *) (view->ds_file_data + (byte_index - view->ds_file_offset));
view              150 src/viewer/datasource.c mcview_get_utf (WView * view, off_t byte_index, int *ch, int *ch_len)
view              156 src/viewer/datasource.c     switch (view->datasource)
view              160 src/viewer/datasource.c         str = mcview_get_ptr_growing_buffer (view, byte_index);
view              163 src/viewer/datasource.c         str = mcview_get_ptr_file (view, byte_index);
view              166 src/viewer/datasource.c         str = mcview_get_ptr_string (view, byte_index);
view              187 src/viewer/datasource.c             if (mcview_get_byte (view, byte_index + i, &res))
view              222 src/viewer/datasource.c mcview_get_ptr_string (WView * view, off_t byte_index)
view              224 src/viewer/datasource.c     g_assert (view->datasource == DS_STRING);
view              226 src/viewer/datasource.c     if (byte_index >= 0 && byte_index < (off_t) view->ds_string_len)
view              227 src/viewer/datasource.c         return (char *) (view->ds_string_data + byte_index);
view              234 src/viewer/datasource.c mcview_get_byte_string (WView * view, off_t byte_index, int *retval)
view              241 src/viewer/datasource.c     p = mcview_get_ptr_string (view, byte_index);
view              253 src/viewer/datasource.c mcview_get_byte_none (WView * view, off_t byte_index, int *retval)
view              255 src/viewer/datasource.c     (void) &view;
view              258 src/viewer/datasource.c     g_assert (view->datasource == DS_NONE);
view              268 src/viewer/datasource.c mcview_set_byte (WView * view, off_t offset, byte b)
view              272 src/viewer/datasource.c     g_assert (offset < mcview_get_filesize (view));
view              273 src/viewer/datasource.c     g_assert (view->datasource == DS_FILE);
view              275 src/viewer/datasource.c     view->ds_file_datalen = 0;  /* just force reloading */
view              282 src/viewer/datasource.c mcview_file_load_data (WView * view, off_t byte_index)
view              288 src/viewer/datasource.c     g_assert (view->datasource == DS_FILE);
view              290 src/viewer/datasource.c     if (mcview_already_loaded (view->ds_file_offset, byte_index, view->ds_file_datalen))
view              293 src/viewer/datasource.c     if (byte_index >= view->ds_file_filesize)
view              296 src/viewer/datasource.c     blockoffset = mcview_offset_rounddown (byte_index, view->ds_file_datasize);
view              297 src/viewer/datasource.c     if (mc_lseek (view->ds_file_fd, blockoffset, SEEK_SET) == -1)
view              301 src/viewer/datasource.c     while (bytes_read < view->ds_file_datasize)
view              304 src/viewer/datasource.c             mc_read (view->ds_file_fd, view->ds_file_data + bytes_read,
view              305 src/viewer/datasource.c                      view->ds_file_datasize - bytes_read);
view              312 src/viewer/datasource.c     view->ds_file_offset = blockoffset;
view              313 src/viewer/datasource.c     if ((off_t) bytes_read > view->ds_file_filesize - view->ds_file_offset)
view              316 src/viewer/datasource.c         view->ds_file_datalen = view->ds_file_filesize - view->ds_file_offset;
view              320 src/viewer/datasource.c         view->ds_file_datalen = bytes_read;
view              325 src/viewer/datasource.c     view->ds_file_datalen = 0;
view              331 src/viewer/datasource.c mcview_close_datasource (WView * view)
view              333 src/viewer/datasource.c     switch (view->datasource)
view              338 src/viewer/datasource.c         if (view->ds_stdio_pipe != NULL)
view              340 src/viewer/datasource.c             mcview_growbuf_done (view);
view              341 src/viewer/datasource.c             mcview_display (view);
view              343 src/viewer/datasource.c         mcview_growbuf_free (view);
view              346 src/viewer/datasource.c         if (view->ds_vfs_pipe != -1)
view              347 src/viewer/datasource.c             mcview_growbuf_done (view);
view              348 src/viewer/datasource.c         mcview_growbuf_free (view);
view              351 src/viewer/datasource.c         (void) mc_close (view->ds_file_fd);
view              352 src/viewer/datasource.c         view->ds_file_fd = -1;
view              353 src/viewer/datasource.c         MC_PTR_FREE (view->ds_file_data);
view              356 src/viewer/datasource.c         MC_PTR_FREE (view->ds_string_data);
view              360 src/viewer/datasource.c     view->datasource = DS_NONE;
view              366 src/viewer/datasource.c mcview_set_datasource_file (WView * view, int fd, const struct stat *st)
view              368 src/viewer/datasource.c     view->datasource = DS_FILE;
view              369 src/viewer/datasource.c     view->ds_file_fd = fd;
view              370 src/viewer/datasource.c     view->ds_file_filesize = st->st_size;
view              371 src/viewer/datasource.c     view->ds_file_offset = 0;
view              372 src/viewer/datasource.c     view->ds_file_data = g_malloc (4096);
view              373 src/viewer/datasource.c     view->ds_file_datalen = 0;
view              374 src/viewer/datasource.c     view->ds_file_datasize = 4096;
view              380 src/viewer/datasource.c mcview_load_command_output (WView * view, const char *command)
view              385 src/viewer/datasource.c     mcview_close_datasource (view);
view              390 src/viewer/datasource.c         mcview_display (view);
view              391 src/viewer/datasource.c         mcview_show_error (view, error->message);
view              397 src/viewer/datasource.c     mcview_set_datasource_stdio_pipe (view, p);
view              398 src/viewer/datasource.c     if (!mcview_get_byte (view, 0, NULL))
view              400 src/viewer/datasource.c         mcview_close_datasource (view);
view              401 src/viewer/datasource.c         mcview_display (view);
view              411 src/viewer/datasource.c mcview_set_datasource_vfs_pipe (WView * view, int fd)
view              415 src/viewer/datasource.c     view->datasource = DS_VFS_PIPE;
view              416 src/viewer/datasource.c     view->ds_vfs_pipe = fd;
view              418 src/viewer/datasource.c     mcview_growbuf_init (view);
view              424 src/viewer/datasource.c mcview_set_datasource_string (WView * view, const char *s)
view              426 src/viewer/datasource.c     view->datasource = DS_STRING;
view              427 src/viewer/datasource.c     view->ds_string_len = strlen (s);
view              428 src/viewer/datasource.c     view->ds_string_data = (byte *) g_strndup (s, view->ds_string_len);
view               77 src/viewer/dialogs.c mcview_dialog_search (WView * view)
view              136 src/viewer/dialogs.c     g_free (view->last_search_string);
view              137 src/viewer/dialogs.c     view->last_search_string = exp;
view              138 src/viewer/dialogs.c     mcview_nroff_seq_free (&view->search_nroff_seq);
view              139 src/viewer/dialogs.c     mc_search_free (view->search);
view              142 src/viewer/dialogs.c     view->search = mc_search_new (view->last_search_string, cp_source);
view              144 src/viewer/dialogs.c     view->search = mc_search_new (view->last_search_string, NULL);
view              146 src/viewer/dialogs.c     view->search_nroff_seq = mcview_nroff_seq_new (view);
view              147 src/viewer/dialogs.c     if (view->search != NULL)
view              149 src/viewer/dialogs.c         view->search->search_type = mcview_search_options.type;
view              151 src/viewer/dialogs.c         view->search->is_all_charsets = mcview_search_options.all_codepages;
view              153 src/viewer/dialogs.c         view->search->is_case_sensitive = mcview_search_options.case_sens;
view              154 src/viewer/dialogs.c         view->search->whole_words = mcview_search_options.whole_words;
view              155 src/viewer/dialogs.c         view->search->search_fn = mcview_search_cmd_callback;
view              156 src/viewer/dialogs.c         view->search->update_fn = mcview_search_update_cmd_callback;
view              159 src/viewer/dialogs.c     return (view->search != NULL);
view              165 src/viewer/dialogs.c mcview_dialog_goto (WView * view, off_t * offset)
view              241 src/viewer/dialogs.c                 mcview_coord_to_offset (view, offset, addr, 0);
view              242 src/viewer/dialogs.c                 *offset = mcview_bol (view, *offset, 0);
view              248 src/viewer/dialogs.c                 if (view->growbuf_in_use)
view              249 src/viewer/dialogs.c                     mcview_growbuf_read_all_data (view);
view              250 src/viewer/dialogs.c                 *offset = addr * mcview_get_filesize (view) / 100;
view              251 src/viewer/dialogs.c                 if (!view->mode_flags.hex)
view              252 src/viewer/dialogs.c                     *offset = mcview_bol (view, *offset, 0);
view              256 src/viewer/dialogs.c                 if (!view->mode_flags.hex)
view              258 src/viewer/dialogs.c                     if (view->growbuf_in_use)
view              259 src/viewer/dialogs.c                         mcview_growbuf_read_until (view, addr);
view              261 src/viewer/dialogs.c                     *offset = mcview_bol (view, addr, 0);
view              266 src/viewer/dialogs.c                     if (view->growbuf_in_use)
view              267 src/viewer/dialogs.c                         mcview_growbuf_read_all_data (view);
view              270 src/viewer/dialogs.c                     addr = mcview_get_filesize (view);
view               79 src/viewer/display.c mcview_set_buttonbar (WView * view)
view               81 src/viewer/display.c     WDialog *h = WIDGET (view)->owner;
view               83 src/viewer/display.c     const global_keymap_t *keymap = view->mode_flags.hex ? viewer_hex_map : viewer_map;
view               85 src/viewer/display.c     buttonbar_set_label (b, 1, Q_ ("ButtonBar|Help"), keymap, WIDGET (view));
view               87 src/viewer/display.c     if (view->mode_flags.hex)
view               89 src/viewer/display.c         if (view->hexedit_mode)
view               90 src/viewer/display.c             buttonbar_set_label (b, 2, Q_ ("ButtonBar|View"), keymap, WIDGET (view));
view               91 src/viewer/display.c         else if (view->datasource == DS_FILE)
view               92 src/viewer/display.c             buttonbar_set_label (b, 2, Q_ ("ButtonBar|Edit"), keymap, WIDGET (view));
view               94 src/viewer/display.c             buttonbar_set_label (b, 2, "", keymap, WIDGET (view));
view               96 src/viewer/display.c         buttonbar_set_label (b, 4, Q_ ("ButtonBar|Ascii"), keymap, WIDGET (view));
view               97 src/viewer/display.c         buttonbar_set_label (b, 6, Q_ ("ButtonBar|Save"), keymap, WIDGET (view));
view               98 src/viewer/display.c         buttonbar_set_label (b, 7, Q_ ("ButtonBar|HxSrch"), keymap, WIDGET (view));
view              103 src/viewer/display.c         buttonbar_set_label (b, 2, view->mode_flags.wrap ? Q_ ("ButtonBar|UnWrap")
view              104 src/viewer/display.c                              : Q_ ("ButtonBar|Wrap"), keymap, WIDGET (view));
view              105 src/viewer/display.c         buttonbar_set_label (b, 4, Q_ ("ButtonBar|Hex"), keymap, WIDGET (view));
view              106 src/viewer/display.c         buttonbar_set_label (b, 6, "", keymap, WIDGET (view));
view              107 src/viewer/display.c         buttonbar_set_label (b, 7, Q_ ("ButtonBar|Search"), keymap, WIDGET (view));
view              110 src/viewer/display.c     buttonbar_set_label (b, 5, Q_ ("ButtonBar|Goto"), keymap, WIDGET (view));
view              111 src/viewer/display.c     buttonbar_set_label (b, 8, view->mode_flags.magic ? Q_ ("ButtonBar|Raw")
view              112 src/viewer/display.c                          : Q_ ("ButtonBar|Parse"), keymap, WIDGET (view));
view              114 src/viewer/display.c     if (!mcview_is_in_panel (view))     /* don't override some panel buttonbar keys  */
view              116 src/viewer/display.c         buttonbar_set_label (b, 3, Q_ ("ButtonBar|Quit"), keymap, WIDGET (view));
view              117 src/viewer/display.c         buttonbar_set_label (b, 9, view->mode_flags.nroff ? Q_ ("ButtonBar|Unform")
view              118 src/viewer/display.c                              : Q_ ("ButtonBar|Format"), keymap, WIDGET (view));
view              119 src/viewer/display.c         buttonbar_set_label (b, 10, Q_ ("ButtonBar|Quit"), keymap, WIDGET (view));
view              126 src/viewer/display.c mcview_display_percent (WView * view, off_t p)
view              130 src/viewer/display.c     percent = mcview_calc_percent (view, p);
view              133 src/viewer/display.c         const screen_dimen top = view->status_area.top;
view              134 src/viewer/display.c         const screen_dimen right = view->status_area.left + view->status_area.width;
view              136 src/viewer/display.c         widget_move (view, top, right - 4);
view              139 src/viewer/display.c         widget_move (view, top, right - 1);
view              146 src/viewer/display.c mcview_display_status (WView * view)
view              148 src/viewer/display.c     const screen_dimen top = view->status_area.top;
view              149 src/viewer/display.c     const screen_dimen left = view->status_area.left;
view              150 src/viewer/display.c     const screen_dimen width = view->status_area.width;
view              151 src/viewer/display.c     const screen_dimen height = view->status_area.height;
view              158 src/viewer/display.c     tty_draw_hline (WIDGET (view)->y + top, WIDGET (view)->x + left, ' ', width);
view              161 src/viewer/display.c         view->filename_vpath != NULL ?
view              162 src/viewer/display.c         vfs_path_get_last_path_str (view->filename_vpath) : view->command != NULL ?
view              163 src/viewer/display.c         view->command : "";
view              167 src/viewer/display.c         widget_move (view, top, width - 32);
view              168 src/viewer/display.c         if (view->mode_flags.hex)
view              169 src/viewer/display.c             tty_printf ("0x%08" PRIxMAX, (uintmax_t) view->hex_cursor);
view              174 src/viewer/display.c             size_trunc_len (buffer, BUF_TRUNC_LEN, mcview_get_filesize (view), 0,
view              176 src/viewer/display.c             tty_printf ("%9" PRIuMAX "/%s%s %s", (uintmax_t) view->dpy_end,
view              177 src/viewer/display.c                         buffer, mcview_may_still_grow (view) ? "+" : " ",
view              185 src/viewer/display.c     widget_move (view, top, left);
view              191 src/viewer/display.c         mcview_display_percent (view, view->mode_flags.hex ? view->hex_cursor : view->dpy_end);
view              199 src/viewer/display.c mcview_update (WView * view)
view              203 src/viewer/display.c     if (view->dpy_bbar_dirty)
view              205 src/viewer/display.c         view->dpy_bbar_dirty = FALSE;
view              206 src/viewer/display.c         mcview_set_buttonbar (view);
view              207 src/viewer/display.c         widget_redraw (WIDGET (find_buttonbar (WIDGET (view)->owner)));
view              210 src/viewer/display.c     if (view->dirty > dirt_limit)
view              213 src/viewer/display.c         mcview_display (view);
view              214 src/viewer/display.c         view->dirty = 0;
view              220 src/viewer/display.c     else if (view->dirty > 0)
view              225 src/viewer/display.c             mcview_display (view);
view              226 src/viewer/display.c             view->dirty = 0;
view              234 src/viewer/display.c             mcview_display_status (view);
view              245 src/viewer/display.c mcview_display (WView * view)
view              247 src/viewer/display.c     if (view->mode_flags.hex)
view              248 src/viewer/display.c         mcview_display_hex (view);
view              250 src/viewer/display.c         mcview_display_text (view);
view              251 src/viewer/display.c     mcview_display_status (view);
view              257 src/viewer/display.c mcview_compute_areas (WView * view)
view              267 src/viewer/display.c     view_area.top = view->dpy_frame_size;
view              268 src/viewer/display.c     view_area.left = view->dpy_frame_size;
view              269 src/viewer/display.c     view_area.height = mcview_dimen_doz (WIDGET (view)->lines, 2 * view->dpy_frame_size);
view              270 src/viewer/display.c     view_area.width = mcview_dimen_doz (WIDGET (view)->cols, 2 * view->dpy_frame_size);
view              273 src/viewer/display.c     view->status_area = view_area;
view              274 src/viewer/display.c     view->ruler_area = view_area;
view              275 src/viewer/display.c     view->data_area = view_area;
view              281 src/viewer/display.c     view->status_area.height = height;
view              284 src/viewer/display.c     height = (ruler == RULER_NONE || view->mode_flags.hex) ? 0 : 2;
view              286 src/viewer/display.c     view->ruler_area.height = height;
view              289 src/viewer/display.c     view->data_area.height = rest;
view              294 src/viewer/display.c     view->status_area.top = y;
view              295 src/viewer/display.c     y += view->status_area.height;
view              299 src/viewer/display.c         view->ruler_area.top = y;
view              300 src/viewer/display.c         y += view->ruler_area.height;
view              303 src/viewer/display.c     view->data_area.top = y;
view              304 src/viewer/display.c     y += view->data_area.height;
view              307 src/viewer/display.c         view->ruler_area.top = y;
view              313 src/viewer/display.c mcview_update_bytes_per_line (WView * view)
view              315 src/viewer/display.c     const screen_dimen cols = view->data_area.width;
view              325 src/viewer/display.c     view->bytes_per_line = bytes;
view              326 src/viewer/display.c     view->dirty = mcview_max_dirt_limit + 1;    /* To force refresh */
view              332 src/viewer/display.c mcview_display_toggle_ruler (WView * view)
view              344 src/viewer/display.c     mcview_compute_areas (view);
view              345 src/viewer/display.c     view->dirty++;
view              351 src/viewer/display.c mcview_display_clean (WView * view)
view              353 src/viewer/display.c     Widget *w = WIDGET (view);
view              357 src/viewer/display.c     if (view->dpy_frame_size != 0)
view              364 src/viewer/display.c mcview_display_ruler (WView * view)
view              367 src/viewer/display.c     const screen_dimen top = view->ruler_area.top;
view              368 src/viewer/display.c     const screen_dimen left = view->ruler_area.left;
view              369 src/viewer/display.c     const screen_dimen width = view->ruler_area.width;
view              370 src/viewer/display.c     const screen_dimen height = view->ruler_area.height;
view              384 src/viewer/display.c         cl = view->dpy_text_column + c;
view              387 src/viewer/display.c             widget_move (view, top + line_row, left + c);
view              396 src/viewer/display.c                 widget_move (view, top + nums_row, left + c - 1);
view               65 src/viewer/growbuf.c mcview_growbuf_init (WView * view)
view               67 src/viewer/growbuf.c     view->growbuf_in_use = TRUE;
view               68 src/viewer/growbuf.c     view->growbuf_blockptr = g_ptr_array_new ();
view               69 src/viewer/growbuf.c     view->growbuf_lastindex = VIEW_PAGE_SIZE;
view               70 src/viewer/growbuf.c     view->growbuf_finished = FALSE;
view               76 src/viewer/growbuf.c mcview_growbuf_done (WView * view)
view               78 src/viewer/growbuf.c     view->growbuf_finished = TRUE;
view               80 src/viewer/growbuf.c     if (view->datasource == DS_STDIO_PIPE)
view               82 src/viewer/growbuf.c         mc_pclose (view->ds_stdio_pipe, NULL);
view               83 src/viewer/growbuf.c         view->ds_stdio_pipe = NULL;
view               87 src/viewer/growbuf.c         (void) mc_close (view->ds_vfs_pipe);
view               88 src/viewer/growbuf.c         view->ds_vfs_pipe = -1;
view               95 src/viewer/growbuf.c mcview_growbuf_free (WView * view)
view               97 src/viewer/growbuf.c     g_assert (view->growbuf_in_use);
view               99 src/viewer/growbuf.c     g_ptr_array_foreach (view->growbuf_blockptr, (GFunc) g_free, NULL);
view              101 src/viewer/growbuf.c     (void) g_ptr_array_free (view->growbuf_blockptr, TRUE);
view              103 src/viewer/growbuf.c     view->growbuf_blockptr = NULL;
view              104 src/viewer/growbuf.c     view->growbuf_in_use = FALSE;
view              110 src/viewer/growbuf.c mcview_growbuf_filesize (WView * view)
view              112 src/viewer/growbuf.c     g_assert (view->growbuf_in_use);
view              114 src/viewer/growbuf.c     if (view->growbuf_blockptr->len == 0)
view              117 src/viewer/growbuf.c         return ((off_t) view->growbuf_blockptr->len - 1) * VIEW_PAGE_SIZE + view->growbuf_lastindex;
view              127 src/viewer/growbuf.c mcview_growbuf_read_until (WView * view, off_t ofs)
view              131 src/viewer/growbuf.c     g_assert (view->growbuf_in_use);
view              133 src/viewer/growbuf.c     if (view->growbuf_finished)
view              136 src/viewer/growbuf.c     while (mcview_growbuf_filesize (view) < ofs || short_read)
view              142 src/viewer/growbuf.c         if (view->growbuf_lastindex == VIEW_PAGE_SIZE)
view              149 src/viewer/growbuf.c             g_ptr_array_add (view->growbuf_blockptr, newblock);
view              150 src/viewer/growbuf.c             view->growbuf_lastindex = 0;
view              153 src/viewer/growbuf.c         p = (byte *) g_ptr_array_index (view->growbuf_blockptr,
view              154 src/viewer/growbuf.c                                         view->growbuf_blockptr->len - 1) + view->growbuf_lastindex;
view              156 src/viewer/growbuf.c         bytesfree = VIEW_PAGE_SIZE - view->growbuf_lastindex;
view              158 src/viewer/growbuf.c         if (view->datasource == DS_STDIO_PIPE)
view              160 src/viewer/growbuf.c             mc_pipe_t *sp = view->ds_stdio_pipe;
view              173 src/viewer/growbuf.c                 mcview_show_error (view, error->message);
view              175 src/viewer/growbuf.c                 mcview_growbuf_done (view);
view              179 src/viewer/growbuf.c             if (view->pipe_first_err_msg && sp->err.len > 0)
view              186 src/viewer/growbuf.c                 view->pipe_first_err_msg = FALSE;
view              188 src/viewer/growbuf.c                 mcview_show_error (view, sp->err.buf);
view              204 src/viewer/growbuf.c                     mcview_show_error (view, err_msg);
view              208 src/viewer/growbuf.c                 if (view->ds_stdio_pipe != NULL)
view              215 src/viewer/growbuf.c                     mcview_growbuf_done (view);
view              217 src/viewer/growbuf.c                 mcview_display (view);
view              223 src/viewer/growbuf.c             g_assert (view->datasource == DS_VFS_PIPE);
view              226 src/viewer/growbuf.c                 nread = mc_read (view->ds_vfs_pipe, p, bytesfree);
view              232 src/viewer/growbuf.c                 mcview_growbuf_done (view);
view              237 src/viewer/growbuf.c         view->growbuf_lastindex += nread;
view              244 src/viewer/growbuf.c mcview_get_byte_growing_buffer (WView * view, off_t byte_index, int *retval)
view              248 src/viewer/growbuf.c     g_assert (view->growbuf_in_use);
view              256 src/viewer/growbuf.c     p = mcview_get_ptr_growing_buffer (view, byte_index);
view              269 src/viewer/growbuf.c mcview_get_ptr_growing_buffer (WView * view, off_t byte_index)
view              273 src/viewer/growbuf.c     g_assert (view->growbuf_in_use);
view              281 src/viewer/growbuf.c     mcview_growbuf_read_until (view, byte_index + 1);
view              282 src/viewer/growbuf.c     if (view->growbuf_blockptr->len == 0)
view              284 src/viewer/growbuf.c     if (pageno < (off_t) view->growbuf_blockptr->len - 1)
view              285 src/viewer/growbuf.c         return ((char *) g_ptr_array_index (view->growbuf_blockptr, pageno) + pageindex);
view              286 src/viewer/growbuf.c     if (pageno == (off_t) view->growbuf_blockptr->len - 1
view              287 src/viewer/growbuf.c         && pageindex < (off_t) view->growbuf_lastindex)
view              288 src/viewer/growbuf.c         return ((char *) g_ptr_array_index (view->growbuf_blockptr, pageno) + pageindex);
view               84 src/viewer/hex.c mcview_hex_calculate_boldflag (WView * view, off_t from, struct hexedit_change_node *curr,
view               87 src/viewer/hex.c     return (from == view->hex_cursor) ? MARK_CURSOR
view               89 src/viewer/hex.c         : (view->search_start <= from && from < view->search_end) ? MARK_SELECTED : MARK_NORMAL;
view               97 src/viewer/hex.c mcview_display_hex (WView * view)
view               99 src/viewer/hex.c     const screen_dimen top = view->data_area.top;
view              100 src/viewer/hex.c     const screen_dimen left = view->data_area.left;
view              101 src/viewer/hex.c     const screen_dimen height = view->data_area.height;
view              102 src/viewer/hex.c     const screen_dimen width = view->data_area.width;
view              103 src/viewer/hex.c     const int ngroups = view->bytes_per_line / 4;
view              117 src/viewer/hex.c     struct hexedit_change_node *curr = view->change_list;
view              126 src/viewer/hex.c     mcview_display_clean (view);
view              130 src/viewer/hex.c     from = view->dpy_start;
view              133 src/viewer/hex.c     if (view->utf8)
view              135 src/viewer/hex.c         if (from >= view->bytes_per_line)
view              138 src/viewer/hex.c             from -= view->bytes_per_line;
view              140 src/viewer/hex.c         if (view->bytes_per_line == 4 && from >= view->bytes_per_line)
view              143 src/viewer/hex.c             from -= view->bytes_per_line;
view              152 src/viewer/hex.c     for (; mcview_get_byte (view, from, NULL) && row < (int) height; row++)
view              163 src/viewer/hex.c             widget_move (view, top + row, left);
view              170 src/viewer/hex.c         for (bytes = 0; bytes < view->bytes_per_line; bytes++, from++)
view              176 src/viewer/hex.c             if (view->utf8)
view              201 src/viewer/hex.c                         if (mcview_get_byte (view, from + j, &res))
view              250 src/viewer/hex.c             if (!mcview_get_byte (view, from, &c))
view              254 src/viewer/hex.c             if (from == view->hex_cursor && !view->hexview_in_text)
view              256 src/viewer/hex.c                 view->cursor_row = row;
view              257 src/viewer/hex.c                 view->cursor_col = col;
view              261 src/viewer/hex.c             boldflag_byte = mcview_hex_calculate_boldflag (view, from, curr, FALSE);
view              262 src/viewer/hex.c             boldflag_char = mcview_hex_calculate_boldflag (view, from, curr, utf8_changed);
view              276 src/viewer/hex.c                           view->hexview_in_text ? VIEW_SELECTED_COLOR : VIEW_UNDERLINED_COLOR);
view              279 src/viewer/hex.c             widget_move (view, top + row, left + col);
view              293 src/viewer/hex.c             if (bytes != view->bytes_per_line - 1)
view              304 src/viewer/hex.c                     if (view->data_area.width >= 80 && col < width)
view              323 src/viewer/hex.c                           view->hexview_in_text ? VIEW_SELECTED_COLOR : MARKED_SELECTED_COLOR);
view              329 src/viewer/hex.c                 if (!view->utf8)
view              331 src/viewer/hex.c                     c = convert_from_8bit_to_utf_c ((unsigned char) c, view->converter);
view              336 src/viewer/hex.c             else if (view->utf8)
view              337 src/viewer/hex.c                 ch = convert_from_utf_to_current_c (ch, view->converter);
view              352 src/viewer/hex.c                 widget_move (view, top + row, left + text_start + bytes);
view              354 src/viewer/hex.c                 if (view->utf8)
view              362 src/viewer/hex.c             if (from == view->hex_cursor && view->hexview_in_text)
view              364 src/viewer/hex.c                 view->cursor_row = row;
view              365 src/viewer/hex.c                 view->cursor_col = text_start + bytes;
view              373 src/viewer/hex.c     mcview_place_cursor (view);
view              374 src/viewer/hex.c     view->dpy_end = from;
view              380 src/viewer/hex.c mcview_hexedit_save_changes (WView * view)
view              384 src/viewer/hex.c     if (view->change_list == NULL)
view              393 src/viewer/hex.c         g_assert (view->filename_vpath != NULL);
view              395 src/viewer/hex.c         fp = mc_open (view->filename_vpath, O_WRONLY);
view              398 src/viewer/hex.c             for (curr = view->change_list; curr != NULL; curr = next)
view              407 src/viewer/hex.c                 view->change_list = next;
view              408 src/viewer/hex.c                 view->dirty++;
view              409 src/viewer/hex.c                 mcview_set_byte (view, curr->offset, curr->value);
view              413 src/viewer/hex.c             view->change_list = NULL;
view              415 src/viewer/hex.c             if (view->locked)
view              416 src/viewer/hex.c                 view->locked = unlock_file (view->filename_vpath);
view              423 src/viewer/hex.c             view->dirty++;
view              441 src/viewer/hex.c mcview_toggle_hexedit_mode (WView * view)
view              443 src/viewer/hex.c     view->hexedit_mode = !view->hexedit_mode;
view              444 src/viewer/hex.c     view->dpy_bbar_dirty = TRUE;
view              445 src/viewer/hex.c     view->dirty++;
view              451 src/viewer/hex.c mcview_hexedit_free_change_list (WView * view)
view              455 src/viewer/hex.c     for (curr = view->change_list; curr != NULL; curr = next)
view              460 src/viewer/hex.c     view->change_list = NULL;
view              462 src/viewer/hex.c     if (view->locked)
view              463 src/viewer/hex.c         view->locked = unlock_file (view->filename_vpath);
view              465 src/viewer/hex.c     view->dirty++;
view               50 src/viewer/inlines.h mcview_is_in_panel (WView * view)
view               52 src/viewer/inlines.h     return (view->dpy_frame_size != 0);
view               58 src/viewer/inlines.h mcview_may_still_grow (WView * view)
view               60 src/viewer/inlines.h     return (view->growbuf_in_use && !view->growbuf_finished);
view               77 src/viewer/inlines.h mcview_get_byte_file (WView * view, off_t byte_index, int *retval)
view               79 src/viewer/inlines.h     g_assert (view->datasource == DS_FILE);
view               81 src/viewer/inlines.h     mcview_file_load_data (view, byte_index);
view               82 src/viewer/inlines.h     if (mcview_already_loaded (view->ds_file_offset, byte_index, view->ds_file_datalen))
view               85 src/viewer/inlines.h             *retval = view->ds_file_data[byte_index - view->ds_file_offset];
view               96 src/viewer/inlines.h mcview_get_byte (WView * view, off_t offset, int *retval)
view               98 src/viewer/inlines.h     switch (view->datasource)
view              102 src/viewer/inlines.h         return mcview_get_byte_growing_buffer (view, offset, retval);
view              104 src/viewer/inlines.h         return mcview_get_byte_file (view, offset, retval);
view              106 src/viewer/inlines.h         return mcview_get_byte_string (view, offset, retval);
view              108 src/viewer/inlines.h         return mcview_get_byte_none (view, offset, retval);
view              117 src/viewer/inlines.h mcview_get_byte_indexed (WView * view, off_t base, off_t ofs, int *retval)
view              121 src/viewer/inlines.h         return mcview_get_byte (view, base + ofs, retval);
view              131 src/viewer/inlines.h mcview_count_backspaces (WView * view, off_t offset)
view              135 src/viewer/inlines.h     while (offset >= 2 * backspaces && mcview_get_byte (view, offset - 2 * backspaces, &c)
view              144 src/viewer/inlines.h mcview_is_nroff_sequence (WView * view, off_t offset)
view              150 src/viewer/inlines.h     if (!mcview_get_byte_indexed (view, offset, 1, &c1) || c1 != '\b')
view              153 src/viewer/inlines.h     if (!mcview_get_byte_indexed (view, offset, 0, &c0) || !g_ascii_isprint (c0))
view              156 src/viewer/inlines.h     if (!mcview_get_byte_indexed (view, offset, 2, &c2) || !g_ascii_isprint (c2))
view              165 src/viewer/inlines.h mcview_growbuf_read_all_data (WView * view)
view              167 src/viewer/inlines.h     mcview_growbuf_read_until (view, OFFSETTYPE_MAX);
view              205 src/viewer/internal.h     WView *view;
view              246 src/viewer/internal.h void mcview_ccache_dump (WView * view);
view              249 src/viewer/internal.h void mcview_ccache_lookup (WView * view, coord_cache_entry_t * coord, enum ccache_type lookup_what);
view              254 src/viewer/internal.h void mcview_update_filesize (WView * view);
view              257 src/viewer/internal.h gboolean mcview_get_utf (WView * view, off_t byte_index, int *ch, int *ch_len);
view              269 src/viewer/internal.h gboolean mcview_dialog_search (WView * view);
view              270 src/viewer/internal.h gboolean mcview_dialog_goto (WView * view, off_t * offset);
view              273 src/viewer/internal.h void mcview_update (WView * view);
view              274 src/viewer/internal.h void mcview_display (WView * view);
view              275 src/viewer/internal.h void mcview_compute_areas (WView * view);
view              276 src/viewer/internal.h void mcview_update_bytes_per_line (WView * view);
view              277 src/viewer/internal.h void mcview_display_toggle_ruler (WView * view);
view              278 src/viewer/internal.h void mcview_display_clean (WView * view);
view              279 src/viewer/internal.h void mcview_display_ruler (WView * view);
view              282 src/viewer/internal.h void mcview_growbuf_init (WView * view);
view              283 src/viewer/internal.h void mcview_growbuf_done (WView * view);
view              284 src/viewer/internal.h void mcview_growbuf_free (WView * view);
view              285 src/viewer/internal.h off_t mcview_growbuf_filesize (WView * view);
view              286 src/viewer/internal.h void mcview_growbuf_read_until (WView * view, off_t p);
view              287 src/viewer/internal.h gboolean mcview_get_byte_growing_buffer (WView * view, off_t p, int *);
view              288 src/viewer/internal.h char *mcview_get_ptr_growing_buffer (WView * view, off_t p);
view              291 src/viewer/internal.h void mcview_display_hex (WView * view);
view              292 src/viewer/internal.h gboolean mcview_hexedit_save_changes (WView * view);
view              293 src/viewer/internal.h void mcview_toggle_hexedit_mode (WView * view);
view              294 src/viewer/internal.h void mcview_hexedit_free_change_list (WView * view);
view              298 src/viewer/internal.h void mcview_toggle_magic_mode (WView * view);
view              299 src/viewer/internal.h void mcview_toggle_wrap_mode (WView * view);
view              300 src/viewer/internal.h void mcview_toggle_nroff_mode (WView * view);
view              301 src/viewer/internal.h void mcview_toggle_hex_mode (WView * view);
view              302 src/viewer/internal.h void mcview_init (WView * view);
view              303 src/viewer/internal.h void mcview_done (WView * view);
view              305 src/viewer/internal.h void mcview_select_encoding (WView * view);
view              306 src/viewer/internal.h void mcview_set_codeset (WView * view);
view              308 src/viewer/internal.h void mcview_show_error (WView * view, const char *error);
view              309 src/viewer/internal.h off_t mcview_bol (WView * view, off_t current, off_t limit);
view              310 src/viewer/internal.h off_t mcview_eol (WView * view, off_t current);
view              312 src/viewer/internal.h int mcview_calc_percent (WView * view, off_t p);
view              331 src/viewer/internal.h int mcview__get_nroff_real_len (WView * view, off_t, off_t p);
view              332 src/viewer/internal.h mcview_nroff_t *mcview_nroff_seq_new_num (WView * view, off_t p);
view              333 src/viewer/internal.h mcview_nroff_t *mcview_nroff_seq_new (WView * view);
view              343 src/viewer/internal.h void mcview_do_search (WView * view, off_t want_search_start);
view               72 src/viewer/lib.c mcview_toggle_magic_mode (WView * view)
view               79 src/viewer/lib.c     view->mode_flags.magic = !view->mode_flags.magic;
view               82 src/viewer/lib.c     filename = g_strdup (vfs_path_as_str (view->filename_vpath));
view               83 src/viewer/lib.c     command = g_strdup (view->command);
view               84 src/viewer/lib.c     dir = view->dir;
view               85 src/viewer/lib.c     dir_idx = view->dir_idx;
view               86 src/viewer/lib.c     view->dir = NULL;
view               87 src/viewer/lib.c     view->dir_idx = NULL;
view               88 src/viewer/lib.c     mcview_done (view);
view               89 src/viewer/lib.c     mcview_init (view);
view               90 src/viewer/lib.c     mcview_load (view, command, filename, 0, 0, 0);
view               91 src/viewer/lib.c     view->dir = dir;
view               92 src/viewer/lib.c     view->dir_idx = dir_idx;
view               96 src/viewer/lib.c     view->dpy_bbar_dirty = TRUE;
view               97 src/viewer/lib.c     view->dirty++;
view              103 src/viewer/lib.c mcview_toggle_wrap_mode (WView * view)
view              105 src/viewer/lib.c     view->mode_flags.wrap = !view->mode_flags.wrap;
view              106 src/viewer/lib.c     view->dpy_wrap_dirty = TRUE;
view              107 src/viewer/lib.c     view->dpy_bbar_dirty = TRUE;
view              108 src/viewer/lib.c     view->dirty++;
view              114 src/viewer/lib.c mcview_toggle_nroff_mode (WView * view)
view              116 src/viewer/lib.c     view->mode_flags.nroff = !view->mode_flags.nroff;
view              118 src/viewer/lib.c     view->dpy_wrap_dirty = TRUE;
view              119 src/viewer/lib.c     view->dpy_bbar_dirty = TRUE;
view              120 src/viewer/lib.c     view->dirty++;
view              126 src/viewer/lib.c mcview_toggle_hex_mode (WView * view)
view              128 src/viewer/lib.c     view->mode_flags.hex = !view->mode_flags.hex;
view              130 src/viewer/lib.c     if (view->mode_flags.hex)
view              132 src/viewer/lib.c         view->hex_cursor = view->dpy_start;
view              133 src/viewer/lib.c         view->dpy_start = mcview_offset_rounddown (view->dpy_start, view->bytes_per_line);
view              134 src/viewer/lib.c         widget_want_cursor (WIDGET (view), TRUE);
view              138 src/viewer/lib.c         view->dpy_start = mcview_bol (view, view->hex_cursor, 0);
view              139 src/viewer/lib.c         view->hex_cursor = view->dpy_start;
view              140 src/viewer/lib.c         widget_want_cursor (WIDGET (view), FALSE);
view              143 src/viewer/lib.c     view->dpy_paragraph_skip_lines = 0;
view              144 src/viewer/lib.c     view->dpy_wrap_dirty = TRUE;
view              145 src/viewer/lib.c     view->dpy_bbar_dirty = TRUE;
view              146 src/viewer/lib.c     view->dirty++;
view              152 src/viewer/lib.c mcview_init (WView * view)
view              156 src/viewer/lib.c     view->filename_vpath = NULL;
view              157 src/viewer/lib.c     view->workdir_vpath = NULL;
view              158 src/viewer/lib.c     view->command = NULL;
view              159 src/viewer/lib.c     view->search_nroff_seq = NULL;
view              161 src/viewer/lib.c     mcview_set_datasource_none (view);
view              163 src/viewer/lib.c     view->growbuf_in_use = FALSE;
view              166 src/viewer/lib.c     view->hexedit_lownibble = FALSE;
view              167 src/viewer/lib.c     view->locked = FALSE;
view              168 src/viewer/lib.c     view->coord_cache = NULL;
view              170 src/viewer/lib.c     view->dpy_start = 0;
view              171 src/viewer/lib.c     view->dpy_paragraph_skip_lines = 0;
view              172 src/viewer/lib.c     mcview_state_machine_init (&view->dpy_state_top, 0);
view              173 src/viewer/lib.c     view->dpy_wrap_dirty = FALSE;
view              174 src/viewer/lib.c     view->force_max = -1;
view              175 src/viewer/lib.c     view->dpy_text_column = 0;
view              176 src/viewer/lib.c     view->dpy_end = 0;
view              177 src/viewer/lib.c     view->hex_cursor = 0;
view              178 src/viewer/lib.c     view->cursor_col = 0;
view              179 src/viewer/lib.c     view->cursor_row = 0;
view              180 src/viewer/lib.c     view->change_list = NULL;
view              184 src/viewer/lib.c     view->dirty = 0;
view              185 src/viewer/lib.c     view->dpy_bbar_dirty = TRUE;
view              186 src/viewer/lib.c     view->bytes_per_line = 1;
view              188 src/viewer/lib.c     view->search_start = 0;
view              189 src/viewer/lib.c     view->search_end = 0;
view              191 src/viewer/lib.c     view->marker = 0;
view              192 src/viewer/lib.c     for (i = 0; i < G_N_ELEMENTS (view->marks); i++)
view              193 src/viewer/lib.c         view->marks[i] = 0;
view              195 src/viewer/lib.c     view->update_steps = 0;
view              196 src/viewer/lib.c     view->update_activate = 0;
view              198 src/viewer/lib.c     view->saved_bookmarks = NULL;
view              204 src/viewer/lib.c mcview_done (WView * view)
view              207 src/viewer/lib.c     if (mcview_remember_file_position && view->filename_vpath != NULL)
view              209 src/viewer/lib.c         save_file_position (view->filename_vpath, -1, 0,
view              210 src/viewer/lib.c                             view->mode_flags.hex ? view->hex_cursor : view->dpy_start,
view              211 src/viewer/lib.c                             view->saved_bookmarks);
view              212 src/viewer/lib.c         view->saved_bookmarks = NULL;
view              216 src/viewer/lib.c     mcview_global_flags = view->mode_flags;
view              220 src/viewer/lib.c     vfs_path_free (view->filename_vpath);
view              221 src/viewer/lib.c     view->filename_vpath = NULL;
view              222 src/viewer/lib.c     vfs_path_free (view->workdir_vpath);
view              223 src/viewer/lib.c     view->workdir_vpath = NULL;
view              224 src/viewer/lib.c     MC_PTR_FREE (view->command);
view              226 src/viewer/lib.c     mcview_close_datasource (view);
view              229 src/viewer/lib.c     coord_cache_free (view->coord_cache);
view              230 src/viewer/lib.c     view->coord_cache = NULL;
view              232 src/viewer/lib.c     if (view->converter == INVALID_CONV)
view              233 src/viewer/lib.c         view->converter = str_cnv_from_term;
view              235 src/viewer/lib.c     if (view->converter != str_cnv_from_term)
view              237 src/viewer/lib.c         str_close_conv (view->converter);
view              238 src/viewer/lib.c         view->converter = str_cnv_from_term;
view              241 src/viewer/lib.c     mc_search_free (view->search);
view              242 src/viewer/lib.c     view->search = NULL;
view              243 src/viewer/lib.c     MC_PTR_FREE (view->last_search_string);
view              244 src/viewer/lib.c     mcview_nroff_seq_free (&view->search_nroff_seq);
view              245 src/viewer/lib.c     mcview_hexedit_free_change_list (view);
view              247 src/viewer/lib.c     if (mc_global.mc_run_mode == MC_RUN_VIEWER && view->dir != NULL)
view              250 src/viewer/lib.c         dir_list_free_list (view->dir);
view              251 src/viewer/lib.c         g_free (view->dir);
view              252 src/viewer/lib.c         g_free (view->dir_idx);
view              255 src/viewer/lib.c     view->dir = NULL;
view              262 src/viewer/lib.c mcview_set_codeset (WView * view)
view              266 src/viewer/lib.c     view->utf8 = TRUE;
view              276 src/viewer/lib.c             if (view->converter != str_cnv_from_term)
view              277 src/viewer/lib.c                 str_close_conv (view->converter);
view              278 src/viewer/lib.c             view->converter = conv;
view              280 src/viewer/lib.c         view->utf8 = (gboolean) str_isutf8 (cp_id);
view              281 src/viewer/lib.c         view->dpy_wrap_dirty = TRUE;
view              288 src/viewer/lib.c mcview_select_encoding (WView * view)
view              291 src/viewer/lib.c         mcview_set_codeset (view);
view              298 src/viewer/lib.c mcview_show_error (WView * view, const char *msg)
view              300 src/viewer/lib.c     if (mcview_is_in_panel (view))
view              301 src/viewer/lib.c         mcview_set_datasource_string (view, msg);
view              312 src/viewer/lib.c mcview_bol (WView * view, off_t current, off_t limit)
view              316 src/viewer/lib.c     filesize = mcview_get_filesize (view);
view              321 src/viewer/lib.c     if (!mcview_get_byte (view, current, &c))
view              325 src/viewer/lib.c         if (!mcview_get_byte (view, current - 1, &c))
view              332 src/viewer/lib.c         if (!mcview_get_byte (view, current - 1, &c))
view              347 src/viewer/lib.c mcview_eol (WView * view, off_t current)
view              356 src/viewer/lib.c         if (!mcview_get_byte (view, current, &c))
view              378 src/viewer/lib.c     const WView *view = (const WView *) find_widget_type (h, mcview_callback);
view              379 src/viewer/lib.c     const char *modified = view->hexedit_mode && (view->change_list != NULL) ? "(*) " : "    ";
view              384 src/viewer/lib.c     view_filename = vfs_path_as_str (view->filename_vpath);
view              388 src/viewer/lib.c     file_label = view_filename != NULL ? view_filename : view->command != NULL ? view->command : "";
view              398 src/viewer/lib.c mcview_calc_percent (WView * view, off_t p)
view              400 src/viewer/lib.c     const screen_dimen right = view->status_area.left + view->status_area.width;
view              401 src/viewer/lib.c     const screen_dimen height = view->status_area.height;
view              407 src/viewer/lib.c     if (mcview_may_still_grow (view))
view              410 src/viewer/lib.c     filesize = mcview_get_filesize (view);
view              411 src/viewer/lib.c     if (view->mode_flags.hex && filesize > 0)
view               91 src/viewer/mcviewer.c     WView *view = (WView *) w;
view               97 src/viewer/mcviewer.c         if (mcview_is_in_panel (view))
view              117 src/viewer/mcviewer.c         if (!view->mode_flags.wrap)
view              124 src/viewer/mcviewer.c             if (x < view->data_area.width * 1 / 4)
view              126 src/viewer/mcviewer.c                 mcview_move_left (view, 1);
view              129 src/viewer/mcviewer.c             else if (x < view->data_area.width * 3 / 4)
view              136 src/viewer/mcviewer.c                 mcview_move_right (view, 1);
view              147 src/viewer/mcviewer.c             if (y < view->data_area.top + view->data_area.height * 1 / 3)
view              150 src/viewer/mcviewer.c                     mcview_move_up (view, view->data_area.height / 2);
view              152 src/viewer/mcviewer.c                     mcview_move_up (view, 1);
view              156 src/viewer/mcviewer.c             else if (y < view->data_area.top + view->data_area.height * 2 / 3)
view              164 src/viewer/mcviewer.c                     mcview_move_down (view, view->data_area.height / 2);
view              166 src/viewer/mcviewer.c                     mcview_move_down (view, 1);
view              174 src/viewer/mcviewer.c         mcview_move_up (view, 2);
view              178 src/viewer/mcviewer.c         mcview_move_down (view, 2);
view              187 src/viewer/mcviewer.c         mcview_update (view);
view              197 src/viewer/mcviewer.c     WView *view;
view              200 src/viewer/mcviewer.c     view = g_new0 (WView, 1);
view              201 src/viewer/mcviewer.c     w = WIDGET (view);
view              205 src/viewer/mcviewer.c     mcview_clear_mode_flags (&view->mode_flags);
view              206 src/viewer/mcviewer.c     view->hexedit_mode = FALSE;
view              207 src/viewer/mcviewer.c     view->hexview_in_text = FALSE;
view              208 src/viewer/mcviewer.c     view->locked = FALSE;
view              210 src/viewer/mcviewer.c     view->dpy_frame_size = is_panel ? 1 : 0;
view              211 src/viewer/mcviewer.c     view->converter = str_cnv_from_term;
view              213 src/viewer/mcviewer.c     mcview_init (view);
view              216 src/viewer/mcviewer.c         mcview_toggle_hex_mode (view);
view              218 src/viewer/mcviewer.c         mcview_toggle_nroff_mode (view);
view              220 src/viewer/mcviewer.c         mcview_toggle_wrap_mode (view);
view              222 src/viewer/mcviewer.c         mcview_toggle_magic_mode (view);
view              224 src/viewer/mcviewer.c     return view;
view              273 src/viewer/mcviewer.c mcview_load (WView * view, const char *command, const char *file, int start_line,
view              279 src/viewer/mcviewer.c     g_assert (view->bytes_per_line != 0);
view              281 src/viewer/mcviewer.c     view->filename_vpath = vfs_path_from_str (file);
view              286 src/viewer/mcviewer.c         vfs_path_free (view->workdir_vpath);
view              293 src/viewer/mcviewer.c             view->workdir_vpath = vfs_path_append_new (p, file, (char *) NULL);
view              304 src/viewer/mcviewer.c             view->workdir_vpath = vfs_path_from_str (dir);
view              309 src/viewer/mcviewer.c     if (!mcview_is_in_panel (view))
view              310 src/viewer/mcviewer.c         view->dpy_text_column = 0;
view              313 src/viewer/mcviewer.c     mcview_set_codeset (view);
view              316 src/viewer/mcviewer.c     if (command != NULL && (view->mode_flags.magic || file == NULL || file[0] == '\0'))
view              317 src/viewer/mcviewer.c         retval = mcview_load_command_output (view, command);
view              331 src/viewer/mcviewer.c             mcview_close_datasource (view);
view              332 src/viewer/mcviewer.c             mcview_show_error (view, tmp);
view              333 src/viewer/mcviewer.c             vfs_path_free (view->filename_vpath);
view              334 src/viewer/mcviewer.c             view->filename_vpath = NULL;
view              335 src/viewer/mcviewer.c             vfs_path_free (view->workdir_vpath);
view              336 src/viewer/mcviewer.c             view->workdir_vpath = NULL;
view              346 src/viewer/mcviewer.c             mcview_close_datasource (view);
view              347 src/viewer/mcviewer.c             mcview_show_error (view, tmp);
view              348 src/viewer/mcviewer.c             vfs_path_free (view->filename_vpath);
view              349 src/viewer/mcviewer.c             view->filename_vpath = NULL;
view              350 src/viewer/mcviewer.c             vfs_path_free (view->workdir_vpath);
view              351 src/viewer/mcviewer.c             view->workdir_vpath = NULL;
view              358 src/viewer/mcviewer.c             mcview_close_datasource (view);
view              359 src/viewer/mcviewer.c             mcview_show_error (view, _("Cannot view: not a regular file"));
view              360 src/viewer/mcviewer.c             vfs_path_free (view->filename_vpath);
view              361 src/viewer/mcviewer.c             view->filename_vpath = NULL;
view              362 src/viewer/mcviewer.c             vfs_path_free (view->workdir_vpath);
view              363 src/viewer/mcviewer.c             view->workdir_vpath = NULL;
view              370 src/viewer/mcviewer.c             mcview_set_datasource_vfs_pipe (view, fd);
view              374 src/viewer/mcviewer.c             if (view->mode_flags.magic)
view              396 src/viewer/mcviewer.c                         mcview_close_datasource (view);
view              397 src/viewer/mcviewer.c                         mcview_show_error (view, tmp);
view              408 src/viewer/mcviewer.c             mcview_set_datasource_file (view, fd, &st);
view              414 src/viewer/mcviewer.c     view->command = g_strdup (command);
view              415 src/viewer/mcviewer.c     view->dpy_start = 0;
view              416 src/viewer/mcviewer.c     view->dpy_paragraph_skip_lines = 0;
view              417 src/viewer/mcviewer.c     mcview_state_machine_init (&view->dpy_state_top, 0);
view              418 src/viewer/mcviewer.c     view->dpy_wrap_dirty = FALSE;
view              419 src/viewer/mcviewer.c     view->force_max = -1;
view              420 src/viewer/mcviewer.c     view->dpy_text_column = 0;
view              422 src/viewer/mcviewer.c     mcview_compute_areas (view);
view              423 src/viewer/mcviewer.c     mcview_update_bytes_per_line (view);
view              425 src/viewer/mcviewer.c     if (mcview_remember_file_position && view->filename_vpath != NULL && start_line == 0)
view              430 src/viewer/mcviewer.c         load_file_position (view->filename_vpath, &line, &col, &new_offset, &view->saved_bookmarks);
view              431 src/viewer/mcviewer.c         max_offset = mcview_get_filesize (view) - 1;
view              436 src/viewer/mcviewer.c         if (!view->mode_flags.hex)
view              438 src/viewer/mcviewer.c             view->dpy_start = mcview_bol (view, new_offset, 0);
view              439 src/viewer/mcviewer.c             view->dpy_wrap_dirty = TRUE;
view              443 src/viewer/mcviewer.c             view->dpy_start = new_offset - new_offset % view->bytes_per_line;
view              444 src/viewer/mcviewer.c             view->hex_cursor = new_offset;
view              448 src/viewer/mcviewer.c         mcview_moveto (view, start_line - 1, 0);
view              450 src/viewer/mcviewer.c     view->search_start = search_start;
view              451 src/viewer/mcviewer.c     view->search_end = search_end;
view              452 src/viewer/mcviewer.c     view->hexedit_lownibble = FALSE;
view              453 src/viewer/mcviewer.c     view->hexview_in_text = FALSE;
view              454 src/viewer/mcviewer.c     view->change_list = NULL;
view               51 src/viewer/mcviewer.h extern gboolean mcview_load (WView * view, const char *command, const char *file, int start_line,
view               71 src/viewer/move.c mcview_scroll_to_cursor (WView * view)
view               73 src/viewer/move.c     if (view->mode_flags.hex)
view               75 src/viewer/move.c         off_t bytes = view->bytes_per_line;
view               76 src/viewer/move.c         off_t cursor = view->hex_cursor;
view               77 src/viewer/move.c         off_t topleft = view->dpy_start;
view               80 src/viewer/move.c         displaysize = view->data_area.height * bytes;
view               85 src/viewer/move.c         view->dpy_start = topleft;
view               86 src/viewer/move.c         view->dpy_paragraph_skip_lines = 0;
view               87 src/viewer/move.c         view->dpy_wrap_dirty = TRUE;
view               94 src/viewer/move.c mcview_movement_fixups (WView * view, gboolean reset_search)
view               96 src/viewer/move.c     mcview_scroll_to_cursor (view);
view               99 src/viewer/move.c         view->search_start = view->mode_flags.hex ? view->hex_cursor : view->dpy_start;
view              100 src/viewer/move.c         view->search_end = view->search_start;
view              102 src/viewer/move.c     view->dirty++;
view              110 src/viewer/move.c mcview_move_up (WView * view, off_t lines)
view              112 src/viewer/move.c     if (view->mode_flags.hex)
view              114 src/viewer/move.c         off_t bytes = lines * view->bytes_per_line;
view              116 src/viewer/move.c         if (view->hex_cursor >= bytes)
view              118 src/viewer/move.c             view->hex_cursor -= bytes;
view              119 src/viewer/move.c             if (view->hex_cursor < view->dpy_start)
view              121 src/viewer/move.c                 view->dpy_start = mcview_offset_doz (view->dpy_start, bytes);
view              122 src/viewer/move.c                 view->dpy_paragraph_skip_lines = 0;
view              123 src/viewer/move.c                 view->dpy_wrap_dirty = TRUE;
view              128 src/viewer/move.c             view->hex_cursor %= view->bytes_per_line;
view              133 src/viewer/move.c         mcview_ascii_move_up (view, lines);
view              135 src/viewer/move.c     mcview_movement_fixups (view, TRUE);
view              141 src/viewer/move.c mcview_move_down (WView * view, off_t lines)
view              145 src/viewer/move.c     last_byte = mcview_get_filesize (view);
view              147 src/viewer/move.c     if (view->mode_flags.hex)
view              151 src/viewer/move.c         limit = mcview_offset_doz (last_byte, (off_t) view->bytes_per_line);
view              153 src/viewer/move.c         for (i = 0; i < lines && view->hex_cursor < limit; i++)
view              155 src/viewer/move.c             view->hex_cursor += view->bytes_per_line;
view              158 src/viewer/move.c                 view->dpy_start += view->bytes_per_line;
view              159 src/viewer/move.c                 view->dpy_paragraph_skip_lines = 0;
view              160 src/viewer/move.c                 view->dpy_wrap_dirty = TRUE;
view              166 src/viewer/move.c         mcview_ascii_move_down (view, lines);
view              168 src/viewer/move.c     mcview_movement_fixups (view, TRUE);
view              174 src/viewer/move.c mcview_move_left (WView * view, off_t columns)
view              176 src/viewer/move.c     if (view->mode_flags.hex)
view              178 src/viewer/move.c         off_t old_cursor = view->hex_cursor;
view              182 src/viewer/move.c         if (view->hexview_in_text || !view->hexedit_lownibble)
view              184 src/viewer/move.c             if (view->hex_cursor > 0)
view              185 src/viewer/move.c                 view->hex_cursor--;
view              187 src/viewer/move.c         if (!view->hexview_in_text)
view              188 src/viewer/move.c             if (old_cursor > 0 || view->hexedit_lownibble)
view              189 src/viewer/move.c                 view->hexedit_lownibble = !view->hexedit_lownibble;
view              191 src/viewer/move.c     else if (!view->mode_flags.wrap)
view              192 src/viewer/move.c         view->dpy_text_column = mcview_offset_doz (view->dpy_text_column, columns);
view              193 src/viewer/move.c     mcview_movement_fixups (view, FALSE);
view              199 src/viewer/move.c mcview_move_right (WView * view, off_t columns)
view              201 src/viewer/move.c     if (view->mode_flags.hex)
view              204 src/viewer/move.c         off_t old_cursor = view->hex_cursor;
view              206 src/viewer/move.c         last_byte = mcview_offset_doz (mcview_get_filesize (view), 1);
view              210 src/viewer/move.c         if (view->hexview_in_text || view->hexedit_lownibble)
view              212 src/viewer/move.c             if (view->hex_cursor < last_byte)
view              213 src/viewer/move.c                 view->hex_cursor++;
view              215 src/viewer/move.c         if (!view->hexview_in_text)
view              216 src/viewer/move.c             if (old_cursor < last_byte || !view->hexedit_lownibble)
view              217 src/viewer/move.c                 view->hexedit_lownibble = !view->hexedit_lownibble;
view              219 src/viewer/move.c     else if (!view->mode_flags.wrap)
view              221 src/viewer/move.c         view->dpy_text_column += columns;
view              223 src/viewer/move.c     mcview_movement_fixups (view, FALSE);
view              229 src/viewer/move.c mcview_moveto_top (WView * view)
view              231 src/viewer/move.c     view->dpy_start = 0;
view              232 src/viewer/move.c     view->dpy_paragraph_skip_lines = 0;
view              233 src/viewer/move.c     mcview_state_machine_init (&view->dpy_state_top, 0);
view              234 src/viewer/move.c     view->hex_cursor = 0;
view              235 src/viewer/move.c     view->dpy_text_column = 0;
view              236 src/viewer/move.c     mcview_movement_fixups (view, TRUE);
view              242 src/viewer/move.c mcview_moveto_bottom (WView * view)
view              246 src/viewer/move.c     mcview_update_filesize (view);
view              248 src/viewer/move.c     if (view->growbuf_in_use)
view              249 src/viewer/move.c         mcview_growbuf_read_all_data (view);
view              251 src/viewer/move.c     filesize = mcview_get_filesize (view);
view              253 src/viewer/move.c     if (view->mode_flags.hex)
view              255 src/viewer/move.c         view->hex_cursor = mcview_offset_doz (filesize, 1);
view              256 src/viewer/move.c         mcview_movement_fixups (view, TRUE);
view              260 src/viewer/move.c         const off_t datalines = view->data_area.height;
view              262 src/viewer/move.c         view->dpy_start = filesize;
view              263 src/viewer/move.c         view->dpy_paragraph_skip_lines = 0;
view              264 src/viewer/move.c         view->dpy_wrap_dirty = TRUE;
view              265 src/viewer/move.c         mcview_move_up (view, datalines);
view              272 src/viewer/move.c mcview_moveto_bol (WView * view)
view              274 src/viewer/move.c     if (view->mode_flags.hex)
view              276 src/viewer/move.c         view->hex_cursor -= view->hex_cursor % view->bytes_per_line;
view              277 src/viewer/move.c         view->dpy_text_column = 0;
view              281 src/viewer/move.c         mcview_ascii_moveto_bol (view);
view              283 src/viewer/move.c     mcview_movement_fixups (view, TRUE);
view              289 src/viewer/move.c mcview_moveto_eol (WView * view)
view              293 src/viewer/move.c     if (view->mode_flags.hex)
view              297 src/viewer/move.c         bol = mcview_offset_rounddown (view->hex_cursor, view->bytes_per_line);
view              298 src/viewer/move.c         if (mcview_get_byte_indexed (view, bol, view->bytes_per_line - 1, NULL) == TRUE)
view              300 src/viewer/move.c             view->hex_cursor = bol + view->bytes_per_line - 1;
view              304 src/viewer/move.c             filesize = mcview_get_filesize (view);
view              305 src/viewer/move.c             view->hex_cursor = mcview_offset_doz (filesize, 1);
view              310 src/viewer/move.c         mcview_ascii_moveto_eol (view);
view              312 src/viewer/move.c     mcview_movement_fixups (view, FALSE);
view              318 src/viewer/move.c mcview_moveto_offset (WView * view, off_t offset)
view              320 src/viewer/move.c     if (view->mode_flags.hex)
view              322 src/viewer/move.c         view->hex_cursor = offset;
view              323 src/viewer/move.c         view->dpy_start = offset - offset % view->bytes_per_line;
view              324 src/viewer/move.c         view->dpy_paragraph_skip_lines = 0;
view              325 src/viewer/move.c         view->dpy_wrap_dirty = TRUE;
view              329 src/viewer/move.c         view->dpy_start = offset;
view              330 src/viewer/move.c         view->dpy_paragraph_skip_lines = 0;
view              331 src/viewer/move.c         view->dpy_wrap_dirty = TRUE;
view              333 src/viewer/move.c     mcview_movement_fixups (view, TRUE);
view              339 src/viewer/move.c mcview_moveto (WView * view, off_t line, off_t col)
view              343 src/viewer/move.c     mcview_coord_to_offset (view, &offset, line, col);
view              344 src/viewer/move.c     mcview_moveto_offset (view, offset);
view              350 src/viewer/move.c mcview_coord_to_offset (WView * view, off_t * ret_offset, off_t line, off_t column)
view              357 src/viewer/move.c     mcview_ccache_lookup (view, &coord, CCACHE_OFFSET);
view              364 src/viewer/move.c mcview_offset_to_coord (WView * view, off_t * ret_line, off_t * ret_column, off_t offset)
view              369 src/viewer/move.c     mcview_ccache_lookup (view, &coord, CCACHE_LINECOL);
view              372 src/viewer/move.c     *ret_column = view->mode_flags.nroff ? coord.cc_nroff_column : coord.cc_column;
view              378 src/viewer/move.c mcview_place_cursor (WView * view)
view              380 src/viewer/move.c     const screen_dimen top = view->data_area.top;
view              381 src/viewer/move.c     const screen_dimen left = view->data_area.left;
view              382 src/viewer/move.c     screen_dimen col = view->cursor_col;
view              383 src/viewer/move.c     if (!view->hexview_in_text && view->hexedit_lownibble)
view              385 src/viewer/move.c     widget_move (view, top + view->cursor_row, left + col);
view              394 src/viewer/move.c mcview_moveto_match (WView * view)
view              396 src/viewer/move.c     if (view->mode_flags.hex)
view              398 src/viewer/move.c         view->hex_cursor = view->search_start;
view              399 src/viewer/move.c         view->hexedit_lownibble = FALSE;
view              400 src/viewer/move.c         view->dpy_start = view->search_start - view->search_start % view->bytes_per_line;
view              401 src/viewer/move.c         view->dpy_end = view->search_end - view->search_end % view->bytes_per_line;
view              402 src/viewer/move.c         view->dpy_paragraph_skip_lines = 0;
view              403 src/viewer/move.c         view->dpy_wrap_dirty = TRUE;
view              407 src/viewer/move.c         view->dpy_start = mcview_bol (view, view->search_start, 0);
view              408 src/viewer/move.c         view->dpy_paragraph_skip_lines = 0;
view              409 src/viewer/move.c         view->dpy_wrap_dirty = TRUE;
view              412 src/viewer/move.c     mcview_scroll_to_cursor (view);
view              413 src/viewer/move.c     view->dirty++;
view               66 src/viewer/nroff.c     if (nroff->view->utf8)
view               68 src/viewer/nroff.c         if (!mcview_get_utf (nroff->view, nroff_index, &c, &nroff->char_length))
view               72 src/viewer/nroff.c             if (!mcview_get_byte (nroff->view, nroff_index, &c) || !g_ascii_isprint (c))
view               80 src/viewer/nroff.c         if (!mcview_get_byte (nroff->view, nroff_index, &c))
view               94 src/viewer/nroff.c mcview__get_nroff_real_len (WView * view, off_t start, off_t length)
view              100 src/viewer/nroff.c     if (!view->mode_flags.nroff)
view              103 src/viewer/nroff.c     nroff = mcview_nroff_seq_new_num (view, start);
view              130 src/viewer/nroff.c mcview_nroff_seq_new_num (WView * view, off_t lc_index)
view              138 src/viewer/nroff.c         nroff->view = view;
view              147 src/viewer/nroff.c mcview_nroff_seq_new (WView * view)
view              149 src/viewer/nroff.c     return mcview_nroff_seq_new_num (view, (off_t) 0);
view              177 src/viewer/nroff.c     if (!mcview_get_byte (nroff->view, nroff->index + nroff->char_length, &next) || next != '\b')
view              266 src/viewer/nroff.c     if (!mcview_get_byte (nroff->view, prev_index, &prev) || prev != '\b')
view               57 src/viewer/search.c     WView *view;
view               79 src/viewer/search.c         percent = mcview_calc_percent (vsm->view, vsm->offset);
view               82 src/viewer/search.c         label_set_textv (ssm->label, _("Searching %s: %3d%%"), vsm->view->last_search_string,
view               85 src/viewer/search.c         label_set_textv (ssm->label, _("Searching %s"), vsm->view->last_search_string);
view              104 src/viewer/search.c mcview_search_update_steps (WView * view)
view              108 src/viewer/search.c     filesize = mcview_get_filesize (view);
view              111 src/viewer/search.c         view->update_steps = filesize / 100;
view              113 src/viewer/search.c         view->update_steps = 40000;
view              116 src/viewer/search.c     if (view->update_steps < 20000)
view              117 src/viewer/search.c         view->update_steps = 20000;
view              120 src/viewer/search.c     if (view->update_steps > 40000)
view              121 src/viewer/search.c         view->update_steps = 40000;
view              129 src/viewer/search.c     WView *view = ssm->view;
view              131 src/viewer/search.c     view->search_numNeedSkipChar = 0;
view              136 src/viewer/search.c         search_end = mcview_get_filesize (view);
view              141 src/viewer/search.c             view->search_nroff_seq->index = search_start;
view              142 src/viewer/search.c             mcview_nroff_seq_info (view->search_nroff_seq);
view              144 src/viewer/search.c             if (search_end > search_start + (off_t) view->search->original_len
view              145 src/viewer/search.c                 && mc_search_is_fixed_search_str (view->search))
view              146 src/viewer/search.c                 search_end = search_start + view->search->original_len;
view              148 src/viewer/search.c             ok = mc_search_run (view->search, (void *) ssm, search_start, search_end, len);
view              149 src/viewer/search.c             if (ok && view->search->normal_offset == search_start)
view              151 src/viewer/search.c                 if (view->mode_flags.nroff)
view              152 src/viewer/search.c                     view->search->normal_offset++;
view              158 src/viewer/search.c             if (!ok && view->search->error != MC_SEARCH_E_NOTFOUND)
view              164 src/viewer/search.c         mc_search_set_error (view->search, MC_SEARCH_E_NOTFOUND, "%s", _(STR_E_NOTFOUND));
view              167 src/viewer/search.c     view->search_nroff_seq->index = search_start;
view              168 src/viewer/search.c     mcview_nroff_seq_info (view->search_nroff_seq);
view              170 src/viewer/search.c     return mc_search_run (view->search, (void *) ssm, search_start, search_end, len);
view              176 src/viewer/search.c mcview_search_show_result (WView * view, size_t match_len)
view              181 src/viewer/search.c         view->mode_flags.nroff
view              182 src/viewer/search.c         ? mcview__get_nroff_real_len (view, view->search->start_buffer,
view              183 src/viewer/search.c                                       view->search->normal_offset - view->search->start_buffer) : 0;
view              184 src/viewer/search.c     view->search_start = view->search->normal_offset + nroff_len;
view              186 src/viewer/search.c     if (!view->mode_flags.hex)
view              187 src/viewer/search.c         view->search_start++;
view              190 src/viewer/search.c         view->mode_flags.nroff ? mcview__get_nroff_real_len (view, view->search_start - 1,
view              192 src/viewer/search.c     view->search_end = view->search_start + match_len + nroff_len;
view              194 src/viewer/search.c     mcview_moveto_match (view);
view              204 src/viewer/search.c     WView *view = ((const mcview_search_status_msg_t *) user_data)->view;
view              207 src/viewer/search.c     if (!view->mode_flags.nroff)
view              209 src/viewer/search.c         mcview_get_byte (view, char_offset, current_char);
view              213 src/viewer/search.c     if (view->search_numNeedSkipChar != 0)
view              215 src/viewer/search.c         view->search_numNeedSkipChar--;
view              220 src/viewer/search.c         || search_cb_char_curr_index >= view->search_nroff_seq->char_length)
view              223 src/viewer/search.c             mcview_nroff_seq_next (view->search_nroff_seq);
view              226 src/viewer/search.c         if (view->search_nroff_seq->char_length > 1)
view              227 src/viewer/search.c             g_unichar_to_utf8 (view->search_nroff_seq->current_char, search_cb_char_buffer);
view              229 src/viewer/search.c             search_cb_char_buffer[0] = (char) view->search_nroff_seq->current_char;
view              231 src/viewer/search.c         if (view->search_nroff_seq->type != NROFF_TYPE_NONE)
view              233 src/viewer/search.c             switch (view->search_nroff_seq->type)
view              236 src/viewer/search.c                 view->search_numNeedSkipChar = 1 + view->search_nroff_seq->char_length; /* real char length and 0x8 */
view              239 src/viewer/search.c                 view->search_numNeedSkipChar = 2;       /* underline symbol and ox8 */
view              261 src/viewer/search.c     WView *view = vsm->view;
view              269 src/viewer/search.c         if (vsm->offset <= view->update_activate)
view              271 src/viewer/search.c             view->update_activate -= view->update_steps;
view              278 src/viewer/search.c         if (vsm->offset >= view->update_activate)
view              280 src/viewer/search.c             view->update_activate += view->update_steps;
view              297 src/viewer/search.c mcview_do_search (WView * view, off_t want_search_start)
view              302 src/viewer/search.c     off_t orig_search_start = view->search_start;
view              307 src/viewer/search.c     view->search_start = want_search_start;
view              310 src/viewer/search.c     if (view->search_start != 0)
view              312 src/viewer/search.c         if (!view->mode_flags.nroff)
view              313 src/viewer/search.c             search_start = view->search_start + (mcview_search_options.backwards ? -2 : 0);
view              320 src/viewer/search.c                 nroff = mcview_nroff_seq_new_num (view, view->search_start);
view              323 src/viewer/search.c                         -(mcview__get_nroff_real_len (view, nroff->index - 1, 2) +
view              332 src/viewer/search.c                 search_start = mcview__get_nroff_real_len (view, view->search_start + 1, 2);
view              334 src/viewer/search.c             search_start += view->search_start;
view              342 src/viewer/search.c     mcview_search_update_steps (view);
view              344 src/viewer/search.c     view->update_activate = search_start;
view              347 src/viewer/search.c     vsm.view = view;
view              357 src/viewer/search.c         if (view->growbuf_in_use)
view              358 src/viewer/search.c             growbufsize = mcview_growbuf_filesize (view);
view              360 src/viewer/search.c             growbufsize = view->search->original_len;
view              362 src/viewer/search.c         if (mcview_find (&vsm, search_start, mcview_get_filesize (view), &match_len))
view              364 src/viewer/search.c             mcview_search_show_result (view, match_len);
view              373 src/viewer/search.c         if (view->search->error != MC_SEARCH_E_NOTFOUND)
view              376 src/viewer/search.c         search_start = growbufsize - view->search->original_len;
view              378 src/viewer/search.c     while (search_start > 0 && mcview_may_still_grow (view));
view              381 src/viewer/search.c     if (view->growbuf_in_use && !found && view->search->error == MC_SEARCH_E_NOTFOUND
view              383 src/viewer/search.c         && mcview_find (&vsm, search_start, mcview_get_filesize (view), &match_len))
view              385 src/viewer/search.c         mcview_search_show_result (view, match_len);
view              391 src/viewer/search.c     if (orig_search_start != 0 && (!found && view->search->error == MC_SEARCH_E_NOTFOUND)
view              394 src/viewer/search.c         view->search_start = orig_search_start;
view              395 src/viewer/search.c         mcview_update (view);
view              404 src/viewer/search.c             view->update_activate = 0;
view              407 src/viewer/search.c             vsm.view = view;
view              416 src/viewer/search.c                 mcview_search_show_result (view, match_len);
view              426 src/viewer/search.c         view->search_start = orig_search_start;
view              427 src/viewer/search.c         mcview_update (view);
view              429 src/viewer/search.c         if (view->search->error == MC_SEARCH_E_NOTFOUND)
view              431 src/viewer/search.c         else if (view->search->error_str != NULL)
view              432 src/viewer/search.c             query_dialog (_("Search"), view->search->error_str, D_NORMAL, 1, _("&Dismiss"));
view              434 src/viewer/search.c     view->dirty++;