view               88 src/viewer/actions_cmd.c mcview_remove_ext_script (WView *view)
view               90 src/viewer/actions_cmd.c     if (view->ext_script != NULL)
view               92 src/viewer/actions_cmd.c         mc_unlink (view->ext_script);
view               93 src/viewer/actions_cmd.c         vfs_path_free (view->ext_script, TRUE);
view               94 src/viewer/actions_cmd.c         view->ext_script = NULL;
view              102 src/viewer/actions_cmd.c mcview_search (WView *view, gboolean start_search)
view              104 src/viewer/actions_cmd.c     off_t want_search_start = view->search_start;
view              108 src/viewer/actions_cmd.c         if (mcview_dialog_search (view))
view              110 src/viewer/actions_cmd.c             if (view->mode_flags.hex)
view              111 src/viewer/actions_cmd.c                 want_search_start = view->hex_cursor;
view              113 src/viewer/actions_cmd.c             mcview_do_search (view, want_search_start);
view              118 src/viewer/actions_cmd.c         if (view->mode_flags.hex)
view              121 src/viewer/actions_cmd.c                 want_search_start = view->hex_cursor + 1;
view              122 src/viewer/actions_cmd.c             else if (view->hex_cursor > 0)
view              123 src/viewer/actions_cmd.c                 want_search_start = view->hex_cursor - 1;
view              128 src/viewer/actions_cmd.c         mcview_do_search (view, want_search_start);
view              135 src/viewer/actions_cmd.c mcview_continue_search_cmd (WView *view)
view              137 src/viewer/actions_cmd.c     if (view->last_search_string != NULL)
view              138 src/viewer/actions_cmd.c         mcview_search (view, FALSE);
view              147 src/viewer/actions_cmd.c             view->last_search_string = s;
view              149 src/viewer/actions_cmd.c             if (mcview_search_init (view))
view              151 src/viewer/actions_cmd.c                 mcview_search (view, FALSE);
view              156 src/viewer/actions_cmd.c             MC_PTR_FREE (view->last_search_string);
view              160 src/viewer/actions_cmd.c         mcview_search (view, TRUE);
view              169 src/viewer/actions_cmd.c     WView *view = (WView *) v;
view              195 src/viewer/actions_cmd.c     mcview_done (view);
view              196 src/viewer/actions_cmd.c     mcview_init (view);
view              197 src/viewer/actions_cmd.c     mcview_load (view, 0, fe->fname->str, 0, 0, 0);
view              198 src/viewer/actions_cmd.c     mcview_display (view);
view              204 src/viewer/actions_cmd.c mcview_handle_editkey (WView *view, int key)
view              210 src/viewer/actions_cmd.c     node = view->change_list;
view              211 src/viewer/actions_cmd.c     while ((node != NULL) && (node->offset != view->hex_cursor))
view              214 src/viewer/actions_cmd.c     if (!view->hexview_in_text)
view              231 src/viewer/actions_cmd.c             mcview_get_byte (view, view->hex_cursor, &byte_val);
view              233 src/viewer/actions_cmd.c         if (view->hexedit_lownibble)
view              247 src/viewer/actions_cmd.c     if ((view->filename_vpath != NULL)
view              248 src/viewer/actions_cmd.c         && (*(vfs_path_get_last_path_str (view->filename_vpath)) != '\0')
view              249 src/viewer/actions_cmd.c         && (view->change_list == NULL))
view              250 src/viewer/actions_cmd.c         view->locked = lock_file (view->filename_vpath);
view              255 src/viewer/actions_cmd.c         node->offset = view->hex_cursor;
view              257 src/viewer/actions_cmd.c         mcview_enqueue_change (&view->change_list, node);
view              262 src/viewer/actions_cmd.c     view->dirty++;
view              263 src/viewer/actions_cmd.c     mcview_move_right (view, 1);
view              271 src/viewer/actions_cmd.c mcview_load_next_prev_init (WView *view)
view              276 src/viewer/actions_cmd.c         view->dir = &current_panel->dir;
view              277 src/viewer/actions_cmd.c         view->dir_idx = &current_panel->current;
view              279 src/viewer/actions_cmd.c     else if (view->dir == NULL)
view              289 src/viewer/actions_cmd.c         view->dir = g_new0 (dir_list, 1);
view              290 src/viewer/actions_cmd.c         view->dir_idx = g_new (int, 1);
view              293 src/viewer/actions_cmd.c             (view->dir, view->workdir_vpath, (GCompareFunc) sort_name, &sort_op, NULL))
view              299 src/viewer/actions_cmd.c             fname = x_basename (vfs_path_as_str (view->filename_vpath));
view              303 src/viewer/actions_cmd.c             for (i = 0; i != view->dir->len; i++)
view              305 src/viewer/actions_cmd.c                 const file_entry_t *fe = &view->dir->list[i];
view              311 src/viewer/actions_cmd.c             *view->dir_idx = i;
view              316 src/viewer/actions_cmd.c             MC_PTR_FREE (view->dir);
view              317 src/viewer/actions_cmd.c             MC_PTR_FREE (view->dir_idx);
view              325 src/viewer/actions_cmd.c mcview_scan_for_file (WView *view, int direction)
view              329 src/viewer/actions_cmd.c     for (i = *view->dir_idx + direction; i != *view->dir_idx; i += direction)
view              332 src/viewer/actions_cmd.c             i = view->dir->len - 1;
view              333 src/viewer/actions_cmd.c         if (i == view->dir->len)
view              335 src/viewer/actions_cmd.c         if (!S_ISDIR (view->dir->list[i].st.st_mode))
view              339 src/viewer/actions_cmd.c     *view->dir_idx = i;
view              345 src/viewer/actions_cmd.c mcview_load_next_prev (WView *view, int direction)
view              352 src/viewer/actions_cmd.c     mcview_load_next_prev_init (view);
view              353 src/viewer/actions_cmd.c     mcview_scan_for_file (view, direction);
view              356 src/viewer/actions_cmd.c     dir = view->dir;
view              357 src/viewer/actions_cmd.c     dir_idx = view->dir_idx;
view              358 src/viewer/actions_cmd.c     view->dir = NULL;
view              359 src/viewer/actions_cmd.c     view->dir_idx = NULL;
view              361 src/viewer/actions_cmd.c         vfs_path_append_new (view->workdir_vpath, dir->list[*dir_idx].fname->str, (char *) NULL);
view              362 src/viewer/actions_cmd.c     mcview_done (view);
view              363 src/viewer/actions_cmd.c     mcview_remove_ext_script (view);
view              364 src/viewer/actions_cmd.c     mcview_init (view);
view              365 src/viewer/actions_cmd.c     if (regex_command_for (view, vfile, "View", &ext_script) == 0)
view              366 src/viewer/actions_cmd.c         mcview_load (view, NULL, vfs_path_as_str (vfile), 0, 0, 0);
view              368 src/viewer/actions_cmd.c     view->dir = dir;
view              369 src/viewer/actions_cmd.c     view->dir_idx = dir_idx;
view              370 src/viewer/actions_cmd.c     view->ext_script = ext_script;
view              372 src/viewer/actions_cmd.c     view->dpy_bbar_dirty = FALSE;       /* FIXME */
view              373 src/viewer/actions_cmd.c     view->dirty++;
view              379 src/viewer/actions_cmd.c mcview_load_file_from_history (WView *view)
view              384 src/viewer/actions_cmd.c     filename = show_file_history (CONST_WIDGET (view), &action);
view              388 src/viewer/actions_cmd.c         mcview_done (view);
view              389 src/viewer/actions_cmd.c         mcview_init (view);
view              391 src/viewer/actions_cmd.c         mcview_load (view, NULL, filename, 0, 0, 0);
view              393 src/viewer/actions_cmd.c         view->dpy_bbar_dirty = FALSE;   /* FIXME */
view              394 src/viewer/actions_cmd.c         view->dirty++;
view              403 src/viewer/actions_cmd.c mcview_execute_cmd (WView *view, long command)
view              411 src/viewer/actions_cmd.c         mcview_toggle_hex_mode (view);
view              415 src/viewer/actions_cmd.c         mcview_toggle_hexedit_mode (view);
view              418 src/viewer/actions_cmd.c         view->hexview_in_text = !view->hexview_in_text;
view              419 src/viewer/actions_cmd.c         view->dirty++;
view              422 src/viewer/actions_cmd.c         if (!view->mode_flags.hex)
view              423 src/viewer/actions_cmd.c             mcview_move_left (view, 10);
view              426 src/viewer/actions_cmd.c         if (!view->mode_flags.hex)
view              427 src/viewer/actions_cmd.c             mcview_move_right (view, 10);
view              433 src/viewer/actions_cmd.c             if (mcview_dialog_goto (view, &addr))
view              436 src/viewer/actions_cmd.c                     mcview_moveto_offset (view, addr);
view              440 src/viewer/actions_cmd.c                     view->dirty++;
view              446 src/viewer/actions_cmd.c         mcview_hexedit_save_changes (view);
view              449 src/viewer/actions_cmd.c         mcview_search (view, TRUE);
view              452 src/viewer/actions_cmd.c         mcview_continue_search_cmd (view);
view              456 src/viewer/actions_cmd.c         mcview_search (view, TRUE);
view              460 src/viewer/actions_cmd.c         mcview_continue_search_cmd (view);
view              464 src/viewer/actions_cmd.c         mcview_search (view, TRUE);
view              468 src/viewer/actions_cmd.c         mcview_continue_search_cmd (view);
view              476 src/viewer/actions_cmd.c             mcview_continue_search_cmd (view);
view              482 src/viewer/actions_cmd.c         mcview_toggle_wrap_mode (view);
view              485 src/viewer/actions_cmd.c         mcview_toggle_magic_mode (view);
view              488 src/viewer/actions_cmd.c         mcview_toggle_nroff_mode (view);
view              491 src/viewer/actions_cmd.c         mcview_moveto_bol (view);
view              494 src/viewer/actions_cmd.c         mcview_moveto_eol (view);
view              497 src/viewer/actions_cmd.c         mcview_move_left (view, 1);
view              500 src/viewer/actions_cmd.c         mcview_move_right (view, 1);
view              503 src/viewer/actions_cmd.c         mcview_move_up (view, 1);
view              506 src/viewer/actions_cmd.c         mcview_move_down (view, 1);
view              509 src/viewer/actions_cmd.c         mcview_move_up (view, (view->data_area.lines + 1) / 2);
view              512 src/viewer/actions_cmd.c         mcview_move_down (view, (view->data_area.lines + 1) / 2);
view              515 src/viewer/actions_cmd.c         mcview_move_up (view, view->data_area.lines);
view              518 src/viewer/actions_cmd.c         mcview_move_down (view, view->data_area.lines);
view              521 src/viewer/actions_cmd.c         mcview_moveto_top (view);
view              524 src/viewer/actions_cmd.c         mcview_moveto_bottom (view);
view              530 src/viewer/actions_cmd.c         mcview_display_toggle_ruler (view);
view              533 src/viewer/actions_cmd.c         view->dpy_start = view->marks[view->marker];
view              534 src/viewer/actions_cmd.c         view->dpy_paragraph_skip_lines = 0;     /* TODO: remember this value in the marker? */
view              535 src/viewer/actions_cmd.c         view->dpy_wrap_dirty = TRUE;
view              536 src/viewer/actions_cmd.c         view->dirty++;
view              539 src/viewer/actions_cmd.c         view->marks[view->marker] = view->dpy_start;
view              543 src/viewer/actions_cmd.c         mcview_select_encoding (view);
view              544 src/viewer/actions_cmd.c         view->dirty++;
view              550 src/viewer/actions_cmd.c         if (!mcview_is_in_panel (view))
view              551 src/viewer/actions_cmd.c             mcview_load_next_prev (view, command == CK_FileNext ? 1 : -1);
view              554 src/viewer/actions_cmd.c         mcview_load_file_from_history (view);
view              557 src/viewer/actions_cmd.c         if (!mcview_is_in_panel (view))
view              558 src/viewer/actions_cmd.c             dlg_close (DIALOG (WIDGET (view)->owner));
view              572 src/viewer/actions_cmd.c mcview_lookup_key (WView *view, int key)
view              574 src/viewer/actions_cmd.c     if (view->mode_flags.hex)
view              575 src/viewer/actions_cmd.c         return keybind_lookup_keymap_command (view->hex_keymap, key);
view              577 src/viewer/actions_cmd.c     return widget_lookup_key (WIDGET (view), key);
view              583 src/viewer/actions_cmd.c mcview_handle_key (WView *view, int key)
view              591 src/viewer/actions_cmd.c     if (view->hexedit_mode && view->mode_flags.hex
view              592 src/viewer/actions_cmd.c         && mcview_handle_editkey (view, key) == MSG_HANDLED)
view              595 src/viewer/actions_cmd.c     command = mcview_lookup_key (view, key);
view              596 src/viewer/actions_cmd.c     if (command != CK_IgnoreKey && mcview_execute_cmd (view, command) == MSG_HANDLED)
view              602 src/viewer/actions_cmd.c         mcview_ccache_dump (view);
view              607 src/viewer/actions_cmd.c         view->marker = key - '0';
view              617 src/viewer/actions_cmd.c mcview_resize (WView *view)
view              619 src/viewer/actions_cmd.c     view->dpy_wrap_dirty = TRUE;
view              620 src/viewer/actions_cmd.c     mcview_compute_areas (view);
view              621 src/viewer/actions_cmd.c     mcview_update_bytes_per_line (view);
view              627 src/viewer/actions_cmd.c mcview_ok_to_quit (WView *view)
view              631 src/viewer/actions_cmd.c     if (view->change_list == NULL)
view              654 src/viewer/actions_cmd.c         return mcview_hexedit_save_changes (view) || mc_global.midnight_shutdown;
view              656 src/viewer/actions_cmd.c         mcview_hexedit_free_change_list (view);
view              670 src/viewer/actions_cmd.c     WView *view = (WView *) w;
view              673 src/viewer/actions_cmd.c     mcview_compute_areas (view);
view              674 src/viewer/actions_cmd.c     mcview_update_bytes_per_line (view);
view              679 src/viewer/actions_cmd.c         if (mcview_is_in_panel (view))
view              680 src/viewer/actions_cmd.c             add_hook (&select_file_hook, mcview_hook, view);
view              682 src/viewer/actions_cmd.c             view->dpy_bbar_dirty = TRUE;
view              686 src/viewer/actions_cmd.c         mcview_display (view);
view              690 src/viewer/actions_cmd.c         if (view->mode_flags.hex)
view              691 src/viewer/actions_cmd.c             mcview_place_cursor (view);
view              695 src/viewer/actions_cmd.c         i = mcview_handle_key (view, parm);
view              696 src/viewer/actions_cmd.c         mcview_update (view);
view              700 src/viewer/actions_cmd.c         i = mcview_execute_cmd (view, parm);
view              701 src/viewer/actions_cmd.c         mcview_update (view);
view              705 src/viewer/actions_cmd.c         view->dpy_bbar_dirty = TRUE;
view              707 src/viewer/actions_cmd.c         mcview_update (view);
view              712 src/viewer/actions_cmd.c         mcview_resize (view);
view              716 src/viewer/actions_cmd.c         if (mcview_is_in_panel (view))
view              742 src/viewer/actions_cmd.c                 mcview_ok_to_quit (view);
view              744 src/viewer/actions_cmd.c         mcview_done (view);
view              745 src/viewer/actions_cmd.c         mcview_remove_ext_script (view);
view              759 src/viewer/actions_cmd.c     WView *view;
view              771 src/viewer/actions_cmd.c         view = (WView *) widget_find_by_type (w, mcview_callback);
view              774 src/viewer/actions_cmd.c         if (mcview_ok_to_quit (view))
view              777 src/viewer/actions_cmd.c             mcview_update (view);
view              203 src/viewer/ascii.c mcview_wcwidth (const WView *view, int c)
view              206 src/viewer/ascii.c     if (view->utf8)
view              214 src/viewer/ascii.c     (void) view;
view              223 src/viewer/ascii.c mcview_ismark (const WView *view, int c)
view              226 src/viewer/ascii.c     if (view->utf8)
view              229 src/viewer/ascii.c     (void) view;
view              239 src/viewer/ascii.c mcview_is_non_spacing_mark (const WView *view, int c)
view              242 src/viewer/ascii.c     if (view->utf8)
view              251 src/viewer/ascii.c     (void) view;
view              261 src/viewer/ascii.c mcview_is_spacing_mark (const WView *view, int c)
view              264 src/viewer/ascii.c     if (view->utf8)
view              267 src/viewer/ascii.c     (void) view;
view              277 src/viewer/ascii.c mcview_isprint (const WView *view, int c)
view              280 src/viewer/ascii.c     if (!view->utf8)
view              281 src/viewer/ascii.c         c = convert_from_8bit_to_utf_c ((unsigned char) c, view->converter);
view              284 src/viewer/ascii.c     (void) view;
view              293 src/viewer/ascii.c mcview_char_display (const WView *view, int c, char *s)
view              298 src/viewer/ascii.c         if (!view->utf8)
view              299 src/viewer/ascii.c             c = convert_from_8bit_to_utf_c ((unsigned char) c, view->converter);
view              304 src/viewer/ascii.c     if (view->utf8)
view              314 src/viewer/ascii.c         c = convert_from_utf_to_current_c (c, view->converter);
view              322 src/viewer/ascii.c     (void) view;
view              346 src/viewer/ascii.c mcview_get_next_char (WView *view, mcview_state_machine_t *state, int *c)
view              349 src/viewer/ascii.c     if (view->force_max >= 0 && state->offset >= view->force_max)
view              353 src/viewer/ascii.c     if (view->utf8)
view              357 src/viewer/ascii.c         if (!mcview_get_utf (view, state->offset, c, &char_length))
view              360 src/viewer/ascii.c         if (view->force_max >= 0 && state->offset + char_length > view->force_max)
view              367 src/viewer/ascii.c     if (!mcview_get_byte (view, state->offset, c))
view              393 src/viewer/ascii.c mcview_get_next_maybe_nroff_char (WView *view, mcview_state_machine_t *state, int *c, int *color)
view              401 src/viewer/ascii.c     if (!view->mode_flags.nroff)
view              402 src/viewer/ascii.c         return mcview_get_next_char (view, state, c);
view              404 src/viewer/ascii.c     if (!mcview_get_next_char (view, state, c))
view              407 src/viewer/ascii.c     if (!mcview_isprint (view, *c))
view              412 src/viewer/ascii.c     if (!mcview_get_next_char (view, &state_after_nroff, &c2))
view              417 src/viewer/ascii.c     if (!mcview_get_next_char (view, &state_after_nroff, &c3))
view              419 src/viewer/ascii.c     if (!mcview_isprint (view, c3))
view              476 src/viewer/ascii.c mcview_next_combining_char_sequence (WView *view, mcview_state_machine_t *state, int *cs,
view              481 src/viewer/ascii.c     if (!mcview_get_next_maybe_nroff_char (view, state, cs, color))
view              490 src/viewer/ascii.c         if (mcview_get_next_maybe_nroff_char (view, &state_after_crlf, &cnext, NULL)
view              498 src/viewer/ascii.c     if (!mcview_isprint (view, cs[0]))
view              501 src/viewer/ascii.c     if (mcview_ismark (view, cs[0]))
view              517 src/viewer/ascii.c     if (mcview_wcwidth (view, cs[0]) == 2)
view              530 src/viewer/ascii.c         if (!mcview_get_next_maybe_nroff_char (view, &state_after_combining, &cs[i], NULL))
view              532 src/viewer/ascii.c         if (!mcview_ismark (view, cs[i]) || !mcview_isprint (view, cs[i]))
view              575 src/viewer/ascii.c mcview_display_line (WView *view, mcview_state_machine_t *state, int row,
view              578 src/viewer/ascii.c     const WRect *r = &view->data_area;
view              579 src/viewer/ascii.c     off_t dpy_text_column = view->mode_flags.wrap ? 0 : view->dpy_text_column;
view              588 src/viewer/ascii.c     if (!view->mode_flags.wrap && (row < 0 || row >= r->lines) && linewidth == NULL)
view              595 src/viewer/ascii.c         eol = mcview_eol (view, state->offset);
view              610 src/viewer/ascii.c         n = mcview_next_combining_char_sequence (view, state, cs, 1 + MAX_COMBINING_CHARS, &color);
view              618 src/viewer/ascii.c         if (view->search_start <= state->offset && state->offset < view->search_end)
view              630 src/viewer/ascii.c         if (mcview_is_non_spacing_mark (view, cs[0]))
view              637 src/viewer/ascii.c         if ((!mcview_isprint (view, cs[0]) || mcview_ismark (view, cs[0])) && cs[0] != '\t')
view              641 src/viewer/ascii.c             charwidth += mcview_wcwidth (view, cs[i]);
view              657 src/viewer/ascii.c         if (view->mode_flags.wrap && (off_t) col + charwidth > dpy_text_column + (off_t) r->cols
view              676 src/viewer/ascii.c                 widget_gotoyx (view, r->y + row, r->x + ((off_t) col - dpy_text_column));
view              686 src/viewer/ascii.c                         j += mcview_char_display (view, cs[i], str + j);
view              704 src/viewer/ascii.c                     widget_gotoyx (view, r->y + row, r->x + (i - dpy_text_column));
view              717 src/viewer/ascii.c                     widget_gotoyx (view, r->y + row, r->x + (i - dpy_text_column));
view              726 src/viewer/ascii.c         if (!view->mode_flags.wrap && (off_t) col >= dpy_text_column + (off_t) r->cols
view              733 src/viewer/ascii.c             eol = mcview_eol (view, state->offset);
view              767 src/viewer/ascii.c mcview_display_paragraph (WView *view, mcview_state_machine_t *state, int row)
view              775 src/viewer/ascii.c         lines += mcview_display_line (view, state, row, &paragraph_ended, NULL);
view              779 src/viewer/ascii.c         if (row < view->data_area.lines)
view              783 src/viewer/ascii.c             if (row >= view->data_area.lines)
view              803 src/viewer/ascii.c mcview_wrap_fixup (WView *view)
view              805 src/viewer/ascii.c     int lines = view->dpy_paragraph_skip_lines;
view              807 src/viewer/ascii.c     if (!view->dpy_wrap_dirty)
view              809 src/viewer/ascii.c     view->dpy_wrap_dirty = FALSE;
view              811 src/viewer/ascii.c     view->dpy_paragraph_skip_lines = 0;
view              812 src/viewer/ascii.c     mcview_state_machine_init (&view->dpy_state_top, view->dpy_start);
view              819 src/viewer/ascii.c         state_prev = view->dpy_state_top;
view              820 src/viewer/ascii.c         if (mcview_display_line (view, &view->dpy_state_top, -1, &paragraph_ended, NULL) == 0)
view              824 src/viewer/ascii.c             view->dpy_state_top = state_prev;
view              827 src/viewer/ascii.c         view->dpy_paragraph_skip_lines++;
view              847 src/viewer/ascii.c mcview_display_text (WView *view)
view              849 src/viewer/ascii.c     const WRect *r = &view->data_area;
view              860 src/viewer/ascii.c         mcview_display_clean (view);
view              861 src/viewer/ascii.c         mcview_display_ruler (view);
view              863 src/viewer/ascii.c         if (!view->mode_flags.wrap)
view              864 src/viewer/ascii.c             mcview_state_machine_init (&state, view->dpy_start);
view              867 src/viewer/ascii.c             mcview_wrap_fixup (view);
view              868 src/viewer/ascii.c             state = view->dpy_state_top;
view              873 src/viewer/ascii.c             n = mcview_display_paragraph (view, &state, row);
view              881 src/viewer/ascii.c                 if ((view->mode_flags.wrap ? view->dpy_state_top.offset : view->dpy_start) > 0)
view              883 src/viewer/ascii.c                     mcview_ascii_move_up (view, r->lines - row);
view              892 src/viewer/ascii.c     view->dpy_end = state.offset;
view              893 src/viewer/ascii.c     view->dpy_state_bottom = state;
view              899 src/viewer/ascii.c             widget_gotoyx (view, r->y + row, r->x);
view              919 src/viewer/ascii.c mcview_ascii_move_down (WView *view, off_t lines)
view              928 src/viewer/ascii.c         if (mcview_display_line (view, &view->dpy_state_bottom, -1, &paragraph_ended, NULL) == 0)
view              933 src/viewer/ascii.c         if (!view->mode_flags.wrap)
view              935 src/viewer/ascii.c             view->dpy_start = mcview_eol (view, view->dpy_start);
view              936 src/viewer/ascii.c             view->dpy_paragraph_skip_lines = 0;
view              937 src/viewer/ascii.c             view->dpy_wrap_dirty = TRUE;
view              941 src/viewer/ascii.c             mcview_display_line (view, &view->dpy_state_top, -1, &paragraph_ended, NULL);
view              943 src/viewer/ascii.c                 view->dpy_paragraph_skip_lines++;
view              946 src/viewer/ascii.c                 view->dpy_start = view->dpy_state_top.offset;
view              947 src/viewer/ascii.c                 view->dpy_paragraph_skip_lines = 0;
view              968 src/viewer/ascii.c mcview_ascii_move_up (WView *view, off_t lines)
view              970 src/viewer/ascii.c     if (!view->mode_flags.wrap)
view              973 src/viewer/ascii.c             view->dpy_start = mcview_bol (view, view->dpy_start - 1, 0);
view              974 src/viewer/ascii.c         view->dpy_paragraph_skip_lines = 0;
view              975 src/viewer/ascii.c         view->dpy_wrap_dirty = TRUE;
view              981 src/viewer/ascii.c         while (lines > view->dpy_paragraph_skip_lines)
view              984 src/viewer/ascii.c             if (view->dpy_start == 0)
view              987 src/viewer/ascii.c                 view->dpy_paragraph_skip_lines = 0;
view              988 src/viewer/ascii.c                 mcview_state_machine_init (&view->dpy_state_top, 0);
view              991 src/viewer/ascii.c             lines -= view->dpy_paragraph_skip_lines;
view              992 src/viewer/ascii.c             view->force_max = view->dpy_start;
view              993 src/viewer/ascii.c             view->dpy_start =
view              994 src/viewer/ascii.c                 mcview_bol (view, view->dpy_start - 1,
view              995 src/viewer/ascii.c                             view->dpy_start - MAX_BACKWARDS_WALK_IN_PARAGRAPH);
view              996 src/viewer/ascii.c             mcview_state_machine_init (&view->dpy_state_top, view->dpy_start);
view             1000 src/viewer/ascii.c             view->dpy_paragraph_skip_lines =
view             1001 src/viewer/ascii.c                 mcview_display_paragraph (view, &view->dpy_state_top, view->data_area.lines);
view             1002 src/viewer/ascii.c             view->force_max = -1;
view             1008 src/viewer/ascii.c         mcview_state_machine_init (&view->dpy_state_top, view->dpy_start);
view             1009 src/viewer/ascii.c         view->dpy_paragraph_skip_lines -= lines;
view             1010 src/viewer/ascii.c         for (i = 0; i < view->dpy_paragraph_skip_lines; i++)
view             1011 src/viewer/ascii.c             mcview_display_line (view, &view->dpy_state_top, -1, NULL, NULL);
view             1018 src/viewer/ascii.c mcview_ascii_moveto_bol (WView *view)
view             1020 src/viewer/ascii.c     if (!view->mode_flags.wrap)
view             1021 src/viewer/ascii.c         view->dpy_text_column = 0;
view             1027 src/viewer/ascii.c mcview_ascii_moveto_eol (WView *view)
view             1029 src/viewer/ascii.c     if (!view->mode_flags.wrap)
view             1035 src/viewer/ascii.c         mcview_state_machine_init (&state, view->dpy_start);
view             1036 src/viewer/ascii.c         mcview_display_line (view, &state, -1, NULL, &linewidth);
view             1037 src/viewer/ascii.c         view->dpy_text_column = DOZ (linewidth, (off_t) view->data_area.cols);
view              134 src/viewer/coord_cache.c mcview_ccache_find (WView *view, const coord_cache_entry_t *coord, cmp_func_t cmp_func)
view              137 src/viewer/coord_cache.c     size_t limit = view->coord_cache->len;
view              146 src/viewer/coord_cache.c         if (cmp_func (coord, coord_cache_index (view->coord_cache, i)))
view              170 src/viewer/coord_cache.c mcview_ccache_dump (WView *view)
view              175 src/viewer/coord_cache.c     const GPtrArray *cache = view->coord_cache;
view              179 src/viewer/coord_cache.c     filesize = mcview_get_filesize (view);
view              206 src/viewer/coord_cache.c         mcview_offset_to_coord (view, &line, &column, offset);
view              215 src/viewer/coord_cache.c         mcview_coord_to_offset (view, &nextline_offset, line + 1, 0);
view              220 src/viewer/coord_cache.c             mcview_coord_to_offset (view, &offset, line, column);
view              244 src/viewer/coord_cache.c mcview_ccache_lookup (WView *view, coord_cache_entry_t *coord, enum ccache_type lookup_what)
view              260 src/viewer/coord_cache.c     if (view->coord_cache == NULL)
view              261 src/viewer/coord_cache.c         view->coord_cache = g_ptr_array_new_full (CACHE_CAPACITY_DELTA, g_free);
view              263 src/viewer/coord_cache.c     cache = view->coord_cache;
view              275 src/viewer/coord_cache.c     else if (view->mode_flags.nroff)
view              284 src/viewer/coord_cache.c     i = mcview_ccache_find (view, coord, cmp_func);
view              288 src/viewer/coord_cache.c     if (i + 1 < view->coord_cache->len)
view              299 src/viewer/coord_cache.c         if (!mcview_get_byte (view, current.cc_offset, &c))
view              303 src/viewer/coord_cache.c             (lookup_what != CCACHE_OFFSET || !view->mode_flags.nroff || nroff_state == NROFF_START))
view              317 src/viewer/coord_cache.c             mcview_get_byte_indexed (view, current.cc_offset, 1, &nextc);
view              357 src/viewer/coord_cache.c             nroff_state = mcview_is_nroff_sequence (view, current.cc_offset)
view               79 src/viewer/datasource.c mcview_set_datasource_stdio_pipe (WView *view, mc_pipe_t *p)
view               85 src/viewer/datasource.c     view->datasource = DS_STDIO_PIPE;
view               86 src/viewer/datasource.c     view->ds_stdio_pipe = p;
view               87 src/viewer/datasource.c     view->pipe_first_err_msg = TRUE;
view               89 src/viewer/datasource.c     mcview_growbuf_init (view);
view               97 src/viewer/datasource.c mcview_set_datasource_none (WView *view)
view               99 src/viewer/datasource.c     view->datasource = DS_NONE;
view              105 src/viewer/datasource.c mcview_get_filesize (WView *view)
view              107 src/viewer/datasource.c     switch (view->datasource)
view              111 src/viewer/datasource.c         return mcview_growbuf_filesize (view);
view              113 src/viewer/datasource.c         return view->ds_file_filesize;
view              115 src/viewer/datasource.c         return view->ds_string_len;
view              124 src/viewer/datasource.c mcview_update_filesize (WView *view)
view              126 src/viewer/datasource.c     if (view->datasource == DS_FILE)
view              129 src/viewer/datasource.c         if (mc_fstat (view->ds_file_fd, &st) != -1)
view              130 src/viewer/datasource.c             view->ds_file_filesize = st.st_size;
view              137 src/viewer/datasource.c mcview_get_ptr_file (WView *view, off_t byte_index)
view              139 src/viewer/datasource.c     g_assert (view->datasource == DS_FILE);
view              141 src/viewer/datasource.c     mcview_file_load_data (view, byte_index);
view              142 src/viewer/datasource.c     if (mcview_already_loaded (view->ds_file_offset, byte_index, view->ds_file_datalen))
view              143 src/viewer/datasource.c         return (char *) (view->ds_file_data + (byte_index - view->ds_file_offset));
view              152 src/viewer/datasource.c mcview_get_utf (WView *view, off_t byte_index, int *ch, int *ch_len)
view              158 src/viewer/datasource.c     switch (view->datasource)
view              162 src/viewer/datasource.c         str = mcview_get_ptr_growing_buffer (view, byte_index);
view              165 src/viewer/datasource.c         str = mcview_get_ptr_file (view, byte_index);
view              168 src/viewer/datasource.c         str = mcview_get_ptr_string (view, byte_index);
view              189 src/viewer/datasource.c             if (mcview_get_byte (view, byte_index + i, &res))
view              224 src/viewer/datasource.c mcview_get_ptr_string (WView *view, off_t byte_index)
view              226 src/viewer/datasource.c     g_assert (view->datasource == DS_STRING);
view              228 src/viewer/datasource.c     if (byte_index >= 0 && byte_index < (off_t) view->ds_string_len)
view              229 src/viewer/datasource.c         return (char *) (view->ds_string_data + byte_index);
view              236 src/viewer/datasource.c mcview_get_byte_string (WView *view, off_t byte_index, int *retval)
view              243 src/viewer/datasource.c     p = mcview_get_ptr_string (view, byte_index);
view              255 src/viewer/datasource.c mcview_get_byte_none (WView *view, off_t byte_index, int *retval)
view              257 src/viewer/datasource.c     (void) &view;
view              260 src/viewer/datasource.c     g_assert (view->datasource == DS_NONE);
view              270 src/viewer/datasource.c mcview_set_byte (WView *view, off_t offset, byte b)
view              275 src/viewer/datasource.c     g_assert (offset < mcview_get_filesize (view));
view              276 src/viewer/datasource.c     g_assert (view->datasource == DS_FILE);
view              278 src/viewer/datasource.c     view->ds_file_datalen = 0;  /* just force reloading */
view              285 src/viewer/datasource.c mcview_file_load_data (WView *view, off_t byte_index)
view              291 src/viewer/datasource.c     g_assert (view->datasource == DS_FILE);
view              293 src/viewer/datasource.c     if (mcview_already_loaded (view->ds_file_offset, byte_index, view->ds_file_datalen))
view              296 src/viewer/datasource.c     if (byte_index >= view->ds_file_filesize)
view              299 src/viewer/datasource.c     blockoffset = mcview_offset_rounddown (byte_index, view->ds_file_datasize);
view              300 src/viewer/datasource.c     if (mc_lseek (view->ds_file_fd, blockoffset, SEEK_SET) == -1)
view              304 src/viewer/datasource.c     while (bytes_read < view->ds_file_datasize)
view              307 src/viewer/datasource.c             mc_read (view->ds_file_fd, view->ds_file_data + bytes_read,
view              308 src/viewer/datasource.c                      view->ds_file_datasize - bytes_read);
view              315 src/viewer/datasource.c     view->ds_file_offset = blockoffset;
view              316 src/viewer/datasource.c     if ((off_t) bytes_read > view->ds_file_filesize - view->ds_file_offset)
view              319 src/viewer/datasource.c         view->ds_file_datalen = view->ds_file_filesize - view->ds_file_offset;
view              323 src/viewer/datasource.c         view->ds_file_datalen = bytes_read;
view              328 src/viewer/datasource.c     view->ds_file_datalen = 0;
view              334 src/viewer/datasource.c mcview_close_datasource (WView *view)
view              336 src/viewer/datasource.c     switch (view->datasource)
view              341 src/viewer/datasource.c         if (view->ds_stdio_pipe != NULL)
view              343 src/viewer/datasource.c             mcview_growbuf_done (view);
view              344 src/viewer/datasource.c             mcview_display (view);
view              346 src/viewer/datasource.c         mcview_growbuf_free (view);
view              349 src/viewer/datasource.c         if (view->ds_vfs_pipe != -1)
view              350 src/viewer/datasource.c             mcview_growbuf_done (view);
view              351 src/viewer/datasource.c         mcview_growbuf_free (view);
view              354 src/viewer/datasource.c         (void) mc_close (view->ds_file_fd);
view              355 src/viewer/datasource.c         view->ds_file_fd = -1;
view              356 src/viewer/datasource.c         MC_PTR_FREE (view->ds_file_data);
view              359 src/viewer/datasource.c         MC_PTR_FREE (view->ds_string_data);
view              364 src/viewer/datasource.c     view->datasource = DS_NONE;
view              370 src/viewer/datasource.c mcview_set_datasource_file (WView *view, int fd, const struct stat *st)
view              372 src/viewer/datasource.c     view->datasource = DS_FILE;
view              373 src/viewer/datasource.c     view->ds_file_fd = fd;
view              374 src/viewer/datasource.c     view->ds_file_filesize = st->st_size;
view              375 src/viewer/datasource.c     view->ds_file_offset = 0;
view              376 src/viewer/datasource.c     view->ds_file_data = g_malloc (4096);
view              377 src/viewer/datasource.c     view->ds_file_datalen = 0;
view              378 src/viewer/datasource.c     view->ds_file_datasize = 4096;
view              384 src/viewer/datasource.c mcview_load_command_output (WView *view, const char *command)
view              389 src/viewer/datasource.c     mcview_close_datasource (view);
view              394 src/viewer/datasource.c         mcview_display (view);
view              395 src/viewer/datasource.c         mcview_show_error (view, error->message);
view              401 src/viewer/datasource.c     mcview_set_datasource_stdio_pipe (view, p);
view              402 src/viewer/datasource.c     if (!mcview_get_byte (view, 0, NULL))
view              404 src/viewer/datasource.c         mcview_close_datasource (view);
view              405 src/viewer/datasource.c         mcview_display (view);
view              415 src/viewer/datasource.c mcview_set_datasource_vfs_pipe (WView *view, int fd)
view              419 src/viewer/datasource.c     view->datasource = DS_VFS_PIPE;
view              420 src/viewer/datasource.c     view->ds_vfs_pipe = fd;
view              422 src/viewer/datasource.c     mcview_growbuf_init (view);
view              428 src/viewer/datasource.c mcview_set_datasource_string (WView *view, const char *s)
view              430 src/viewer/datasource.c     view->datasource = DS_STRING;
view              431 src/viewer/datasource.c     view->ds_string_len = strlen (s);
view              432 src/viewer/datasource.c     view->ds_string_data = (byte *) g_strndup (s, view->ds_string_len);
view               69 src/viewer/dialogs.c mcview_dialog_search (WView *view)
view              132 src/viewer/dialogs.c     mcview_search_deinit (view);
view              133 src/viewer/dialogs.c     view->last_search_string = exp;
view              135 src/viewer/dialogs.c     return mcview_search_init (view);
view              141 src/viewer/dialogs.c mcview_dialog_goto (WView *view, off_t *offset)
view              218 src/viewer/dialogs.c                 mcview_coord_to_offset (view, offset, addr, 0);
view              219 src/viewer/dialogs.c                 *offset = mcview_bol (view, *offset, 0);
view              225 src/viewer/dialogs.c                 if (view->growbuf_in_use)
view              226 src/viewer/dialogs.c                     mcview_growbuf_read_all_data (view);
view              227 src/viewer/dialogs.c                 *offset = addr * mcview_get_filesize (view) / 100;
view              228 src/viewer/dialogs.c                 if (!view->mode_flags.hex)
view              229 src/viewer/dialogs.c                     *offset = mcview_bol (view, *offset, 0);
view              233 src/viewer/dialogs.c                 if (!view->mode_flags.hex)
view              235 src/viewer/dialogs.c                     if (view->growbuf_in_use)
view              236 src/viewer/dialogs.c                         mcview_growbuf_read_until (view, addr);
view              238 src/viewer/dialogs.c                     *offset = mcview_bol (view, addr, 0);
view              243 src/viewer/dialogs.c                     if (view->growbuf_in_use)
view              244 src/viewer/dialogs.c                         mcview_growbuf_read_all_data (view);
view              247 src/viewer/dialogs.c                     addr = mcview_get_filesize (view);
view               82 src/viewer/display.c mcview_set_buttonbar (WView *view)
view               84 src/viewer/display.c     Widget *w = WIDGET (view);
view               87 src/viewer/display.c     const global_keymap_t *keymap = view->mode_flags.hex ? view->hex_keymap : w->keymap;
view               92 src/viewer/display.c     if (view->mode_flags.hex)
view               94 src/viewer/display.c         if (view->hexedit_mode)
view               96 src/viewer/display.c         else if (view->datasource == DS_FILE)
view               99 src/viewer/display.c             buttonbar_set_label (b, 2, "", keymap, WIDGET (view));
view              108 src/viewer/display.c         buttonbar_set_label (b, 2, view->mode_flags.wrap ? Q_ ("ButtonBar|UnWrap")
view              111 src/viewer/display.c         buttonbar_set_label (b, 6, "", keymap, WIDGET (view));
view              116 src/viewer/display.c     buttonbar_set_label (b, 8, view->mode_flags.magic ? Q_ ("ButtonBar|Raw")
view              119 src/viewer/display.c     if (!mcview_is_in_panel (view))     /* don't override some panel buttonbar keys  */
view              122 src/viewer/display.c         buttonbar_set_label (b, 9, view->mode_flags.nroff ? Q_ ("ButtonBar|Unform")
view              131 src/viewer/display.c mcview_display_percent (WView *view, off_t p)
view              135 src/viewer/display.c     percent = mcview_calc_percent (view, p);
view              138 src/viewer/display.c         int top = view->status_area.y;
view              141 src/viewer/display.c         right = view->status_area.x + view->status_area.cols;
view              142 src/viewer/display.c         widget_gotoyx (view, top, right - 4);
view              145 src/viewer/display.c         widget_gotoyx (view, top, right - 1);
view              152 src/viewer/display.c mcview_display_status (WView *view)
view              154 src/viewer/display.c     const WRect *r = &view->status_area;
view              161 src/viewer/display.c     tty_draw_hline (WIDGET (view)->rect.y + r->y, WIDGET (view)->rect.x + r->x, ' ', r->cols);
view              164 src/viewer/display.c         view->filename_vpath != NULL ?
view              165 src/viewer/display.c         vfs_path_get_last_path_str (view->filename_vpath) : view->command != NULL ?
view              166 src/viewer/display.c         view->command : "";
view              170 src/viewer/display.c         widget_gotoyx (view, r->y, r->cols - 32);
view              171 src/viewer/display.c         if (view->mode_flags.hex)
view              172 src/viewer/display.c             tty_printf ("0x%08" PRIxMAX, (uintmax_t) view->hex_cursor);
view              177 src/viewer/display.c             size_trunc_len (buffer, BUF_TRUNC_LEN, mcview_get_filesize (view), 0,
view              179 src/viewer/display.c             tty_printf ("%9" PRIuMAX "/%s%s %s", (uintmax_t) view->dpy_end,
view              180 src/viewer/display.c                         buffer, mcview_may_still_grow (view) ? "+" : " ",
view              188 src/viewer/display.c     widget_gotoyx (view, r->y, r->x);
view              194 src/viewer/display.c         mcview_display_percent (view, view->mode_flags.hex ? view->hex_cursor : view->dpy_end);
view              202 src/viewer/display.c mcview_update (WView *view)
view              206 src/viewer/display.c     if (view->dpy_bbar_dirty)
view              208 src/viewer/display.c         view->dpy_bbar_dirty = FALSE;
view              209 src/viewer/display.c         mcview_set_buttonbar (view);
view              210 src/viewer/display.c         widget_draw (WIDGET (buttonbar_find (DIALOG (WIDGET (view)->owner))));
view              213 src/viewer/display.c     if (view->dirty > dirt_limit)
view              216 src/viewer/display.c         mcview_display (view);
view              217 src/viewer/display.c         view->dirty = 0;
view              223 src/viewer/display.c     else if (view->dirty > 0)
view              228 src/viewer/display.c             mcview_display (view);
view              229 src/viewer/display.c             view->dirty = 0;
view              237 src/viewer/display.c             mcview_display_status (view);
view              248 src/viewer/display.c mcview_display (WView *view)
view              250 src/viewer/display.c     if (view->mode_flags.hex)
view              251 src/viewer/display.c         mcview_display_hex (view);
view              253 src/viewer/display.c         mcview_display_text (view);
view              254 src/viewer/display.c     mcview_display_status (view);
view              260 src/viewer/display.c mcview_compute_areas (WView *view)
view              270 src/viewer/display.c     view_area.y = view->dpy_frame_size;
view              271 src/viewer/display.c     view_area.x = view->dpy_frame_size;
view              272 src/viewer/display.c     view_area.lines = DOZ (WIDGET (view)->rect.lines, 2 * view->dpy_frame_size);
view              273 src/viewer/display.c     view_area.cols = DOZ (WIDGET (view)->rect.cols, 2 * view->dpy_frame_size);
view              276 src/viewer/display.c     view->status_area = view_area;
view              277 src/viewer/display.c     view->ruler_area = view_area;
view              278 src/viewer/display.c     view->data_area = view_area;
view              284 src/viewer/display.c     view->status_area.lines = height;
view              287 src/viewer/display.c     height = (ruler == RULER_NONE || view->mode_flags.hex) ? 0 : 2;
view              289 src/viewer/display.c     view->ruler_area.lines = height;
view              292 src/viewer/display.c     view->data_area.lines = rest;
view              297 src/viewer/display.c     view->status_area.y = y;
view              298 src/viewer/display.c     y += view->status_area.lines;
view              302 src/viewer/display.c         view->ruler_area.y = y;
view              303 src/viewer/display.c         y += view->ruler_area.lines;
view              306 src/viewer/display.c     view->data_area.y = y;
view              307 src/viewer/display.c     y += view->data_area.lines;
view              310 src/viewer/display.c         view->ruler_area.y = y;
view              316 src/viewer/display.c mcview_update_bytes_per_line (WView *view)
view              318 src/viewer/display.c     int cols = view->data_area.cols;
view              328 src/viewer/display.c     view->bytes_per_line = bytes;
view              329 src/viewer/display.c     view->dirty = mcview_max_dirt_limit + 1;    /* To force refresh */
view              335 src/viewer/display.c mcview_display_toggle_ruler (WView *view)
view              346 src/viewer/display.c     mcview_compute_areas (view);
view              347 src/viewer/display.c     view->dirty++;
view              353 src/viewer/display.c mcview_display_clean (WView *view)
view              355 src/viewer/display.c     Widget *w = WIDGET (view);
view              359 src/viewer/display.c     if (view->dpy_frame_size != 0)
view              366 src/viewer/display.c mcview_display_ruler (WView *view)
view              369 src/viewer/display.c     const WRect *r = &view->ruler_area;
view              383 src/viewer/display.c         cl = view->dpy_text_column + c;
view              386 src/viewer/display.c             widget_gotoyx (view, r->y + line_row, r->x + c);
view              395 src/viewer/display.c                 widget_gotoyx (view, r->y + nums_row, r->x + 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_with_free_func (g_free);
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_free (view->growbuf_blockptr, TRUE);
view              100 src/viewer/growbuf.c     view->growbuf_blockptr = NULL;
view              101 src/viewer/growbuf.c     view->growbuf_in_use = FALSE;
view              107 src/viewer/growbuf.c mcview_growbuf_filesize (WView *view)
view              109 src/viewer/growbuf.c     g_assert (view->growbuf_in_use);
view              111 src/viewer/growbuf.c     if (view->growbuf_blockptr->len == 0)
view              114 src/viewer/growbuf.c         return ((off_t) view->growbuf_blockptr->len - 1) * VIEW_PAGE_SIZE + view->growbuf_lastindex;
view              124 src/viewer/growbuf.c mcview_growbuf_read_until (WView *view, off_t ofs)
view              128 src/viewer/growbuf.c     g_assert (view->growbuf_in_use);
view              130 src/viewer/growbuf.c     if (view->growbuf_finished)
view              133 src/viewer/growbuf.c     while (mcview_growbuf_filesize (view) < ofs || short_read)
view              139 src/viewer/growbuf.c         if (view->growbuf_lastindex == VIEW_PAGE_SIZE)
view              146 src/viewer/growbuf.c             g_ptr_array_add (view->growbuf_blockptr, newblock);
view              147 src/viewer/growbuf.c             view->growbuf_lastindex = 0;
view              150 src/viewer/growbuf.c         p = (byte *) g_ptr_array_index (view->growbuf_blockptr,
view              151 src/viewer/growbuf.c                                         view->growbuf_blockptr->len - 1) + view->growbuf_lastindex;
view              153 src/viewer/growbuf.c         bytesfree = VIEW_PAGE_SIZE - view->growbuf_lastindex;
view              155 src/viewer/growbuf.c         if (view->datasource == DS_STDIO_PIPE)
view              157 src/viewer/growbuf.c             mc_pipe_t *sp = view->ds_stdio_pipe;
view              170 src/viewer/growbuf.c                 mcview_show_error (view, error->message);
view              172 src/viewer/growbuf.c                 mcview_growbuf_done (view);
view              176 src/viewer/growbuf.c             if (view->pipe_first_err_msg && sp->err.len > 0)
view              183 src/viewer/growbuf.c                 view->pipe_first_err_msg = FALSE;
view              185 src/viewer/growbuf.c                 mcview_show_error (view, sp->err.buf);
view              194 src/viewer/growbuf.c                 if (view->ds_stdio_pipe == NULL)
view              211 src/viewer/growbuf.c                     mcview_show_error (view, err_msg);
view              220 src/viewer/growbuf.c                 mcview_growbuf_done (view);
view              222 src/viewer/growbuf.c                 mcview_display (view);
view              228 src/viewer/growbuf.c             g_assert (view->datasource == DS_VFS_PIPE);
view              231 src/viewer/growbuf.c                 nread = mc_read (view->ds_vfs_pipe, p, bytesfree);
view              237 src/viewer/growbuf.c                 mcview_growbuf_done (view);
view              242 src/viewer/growbuf.c         view->growbuf_lastindex += nread;
view              249 src/viewer/growbuf.c mcview_get_byte_growing_buffer (WView *view, off_t byte_index, int *retval)
view              253 src/viewer/growbuf.c     g_assert (view->growbuf_in_use);
view              261 src/viewer/growbuf.c     p = mcview_get_ptr_growing_buffer (view, byte_index);
view              274 src/viewer/growbuf.c mcview_get_ptr_growing_buffer (WView *view, off_t byte_index)
view              278 src/viewer/growbuf.c     g_assert (view->growbuf_in_use);
view              286 src/viewer/growbuf.c     mcview_growbuf_read_until (view, byte_index + 1);
view              287 src/viewer/growbuf.c     if (view->growbuf_blockptr->len == 0)
view              289 src/viewer/growbuf.c     if (pageno < (off_t) view->growbuf_blockptr->len - 1)
view              290 src/viewer/growbuf.c         return ((char *) g_ptr_array_index (view->growbuf_blockptr, pageno) + pageindex);
view              291 src/viewer/growbuf.c     if (pageno == (off_t) view->growbuf_blockptr->len - 1
view              292 src/viewer/growbuf.c         && pageindex < (off_t) view->growbuf_lastindex)
view              293 src/viewer/growbuf.c         return ((char *) g_ptr_array_index (view->growbuf_blockptr, pageno) + pageindex);
view               85 src/viewer/hex.c mcview_hex_calculate_boldflag (WView *view, off_t from, struct hexedit_change_node *curr,
view               88 src/viewer/hex.c     return (from == view->hex_cursor) ? MARK_CURSOR
view               90 src/viewer/hex.c         : (view->search_start <= from && from < view->search_end) ? MARK_SELECTED : MARK_NORMAL;
view               98 src/viewer/hex.c mcview_display_hex (WView *view)
view              100 src/viewer/hex.c     const WRect *r = &view->data_area;
view              101 src/viewer/hex.c     int ngroups = view->bytes_per_line / 4;
view              114 src/viewer/hex.c     struct hexedit_change_node *curr = view->change_list;
view              129 src/viewer/hex.c     mcview_display_clean (view);
view              133 src/viewer/hex.c     from = view->dpy_start;
view              135 src/viewer/hex.c     if (view->utf8)
view              137 src/viewer/hex.c         if (from >= view->bytes_per_line)
view              140 src/viewer/hex.c             from -= view->bytes_per_line;
view              142 src/viewer/hex.c         if (view->bytes_per_line == 4 && from >= view->bytes_per_line)
view              145 src/viewer/hex.c             from -= view->bytes_per_line;
view              152 src/viewer/hex.c     for (; mcview_get_byte (view, from, NULL) && row < r->lines; row++)
view              163 src/viewer/hex.c             widget_gotoyx (view, r->y + row, r->x);
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              248 src/viewer/hex.c             if (!mcview_get_byte (view, from, &c))
view              252 src/viewer/hex.c             if (from == view->hex_cursor && !view->hexview_in_text)
view              254 src/viewer/hex.c                 view->cursor_row = row;
view              255 src/viewer/hex.c                 view->cursor_col = col;
view              259 src/viewer/hex.c             boldflag_byte = mcview_hex_calculate_boldflag (view, from, curr, FALSE);
view              260 src/viewer/hex.c             boldflag_char = mcview_hex_calculate_boldflag (view, from, curr, utf8_changed);
view              274 src/viewer/hex.c                           view->hexview_in_text ? VIEW_SELECTED_COLOR : VIEW_UNDERLINED_COLOR);
view              277 src/viewer/hex.c             widget_gotoyx (view, r->y + row, r->x + col);
view              291 src/viewer/hex.c             if (bytes != view->bytes_per_line - 1)
view              302 src/viewer/hex.c                     if (view->data_area.cols >= 80 && col < r->cols)
view              321 src/viewer/hex.c                           view->hexview_in_text ? VIEW_SELECTED_COLOR : MARKED_SELECTED_COLOR);
view              327 src/viewer/hex.c                 if (!view->utf8)
view              328 src/viewer/hex.c                     c = convert_from_8bit_to_utf_c ((unsigned char) c, view->converter);
view              332 src/viewer/hex.c             else if (view->utf8)
view              333 src/viewer/hex.c                 ch = convert_from_utf_to_current_c (ch, view->converter);
view              348 src/viewer/hex.c                 widget_gotoyx (view, r->y + row, r->x + text_start + bytes);
view              350 src/viewer/hex.c                 if (view->utf8)
view              358 src/viewer/hex.c             if (from == view->hex_cursor && view->hexview_in_text)
view              360 src/viewer/hex.c                 view->cursor_row = row;
view              361 src/viewer/hex.c                 view->cursor_col = text_start + bytes;
view              369 src/viewer/hex.c     mcview_place_cursor (view);
view              370 src/viewer/hex.c     view->dpy_end = from;
view              376 src/viewer/hex.c mcview_hexedit_save_changes (WView *view)
view              380 src/viewer/hex.c     if (view->change_list == NULL)
view              389 src/viewer/hex.c         g_assert (view->filename_vpath != NULL);
view              391 src/viewer/hex.c         fp = mc_open (view->filename_vpath, O_WRONLY);
view              394 src/viewer/hex.c             for (curr = view->change_list; curr != NULL; curr = next)
view              403 src/viewer/hex.c                 view->change_list = next;
view              404 src/viewer/hex.c                 view->dirty++;
view              405 src/viewer/hex.c                 mcview_set_byte (view, curr->offset, curr->value);
view              409 src/viewer/hex.c             view->change_list = NULL;
view              411 src/viewer/hex.c             if (view->locked)
view              412 src/viewer/hex.c                 view->locked = unlock_file (view->filename_vpath);
view              419 src/viewer/hex.c             view->dirty++;
view              437 src/viewer/hex.c mcview_toggle_hexedit_mode (WView *view)
view              439 src/viewer/hex.c     view->hexedit_mode = !view->hexedit_mode;
view              440 src/viewer/hex.c     view->dpy_bbar_dirty = TRUE;
view              441 src/viewer/hex.c     view->dirty++;
view              447 src/viewer/hex.c mcview_hexedit_free_change_list (WView *view)
view              451 src/viewer/hex.c     for (curr = view->change_list; curr != NULL; curr = next)
view              456 src/viewer/hex.c     view->change_list = NULL;
view              458 src/viewer/hex.c     if (view->locked)
view              459 src/viewer/hex.c         view->locked = unlock_file (view->filename_vpath);
view              461 src/viewer/hex.c     view->dirty++;
view              195 src/viewer/internal.h     WView *view;
view              224 src/viewer/internal.h void mcview_display_text (WView * view);
view              226 src/viewer/internal.h void mcview_ascii_move_down (WView * view, off_t lines);
view              227 src/viewer/internal.h void mcview_ascii_move_up (WView * view, off_t lines);
view              228 src/viewer/internal.h void mcview_ascii_moveto_bol (WView * view);
view              229 src/viewer/internal.h void mcview_ascii_moveto_eol (WView * view);
view              232 src/viewer/internal.h void mcview_ccache_dump (WView * view);
view              235 src/viewer/internal.h void mcview_ccache_lookup (WView * view, coord_cache_entry_t * coord, enum ccache_type lookup_what);
view              238 src/viewer/internal.h void mcview_set_datasource_none (WView * view);
view              239 src/viewer/internal.h off_t mcview_get_filesize (WView * view);
view              240 src/viewer/internal.h void mcview_update_filesize (WView * view);
view              241 src/viewer/internal.h char *mcview_get_ptr_file (WView * view, off_t byte_index);
view              242 src/viewer/internal.h char *mcview_get_ptr_string (WView * view, off_t byte_index);
view              243 src/viewer/internal.h gboolean mcview_get_utf (WView * view, off_t byte_index, int *ch, int *ch_len);
view              244 src/viewer/internal.h gboolean mcview_get_byte_string (WView * view, off_t byte_index, int *retval);
view              245 src/viewer/internal.h gboolean mcview_get_byte_none (WView * view, off_t byte_index, int *retval);
view              246 src/viewer/internal.h void mcview_set_byte (WView * view, off_t offset, byte b);
view              247 src/viewer/internal.h void mcview_file_load_data (WView * view, off_t byte_index);
view              248 src/viewer/internal.h void mcview_close_datasource (WView * view);
view              249 src/viewer/internal.h void mcview_set_datasource_file (WView * view, int fd, const struct stat *st);
view              250 src/viewer/internal.h gboolean mcview_load_command_output (WView * view, const char *command);
view              251 src/viewer/internal.h void mcview_set_datasource_vfs_pipe (WView * view, int fd);
view              252 src/viewer/internal.h void mcview_set_datasource_string (WView * view, const char *s);
view              255 src/viewer/internal.h gboolean mcview_dialog_search (WView * view);
view              256 src/viewer/internal.h gboolean mcview_dialog_goto (WView * view, off_t * offset);
view              259 src/viewer/internal.h void mcview_update (WView * view);
view              260 src/viewer/internal.h void mcview_display (WView * view);
view              261 src/viewer/internal.h void mcview_compute_areas (WView * view);
view              262 src/viewer/internal.h void mcview_update_bytes_per_line (WView * view);
view              263 src/viewer/internal.h void mcview_display_toggle_ruler (WView * view);
view              264 src/viewer/internal.h void mcview_display_clean (WView * view);
view              265 src/viewer/internal.h void mcview_display_ruler (WView * view);
view              268 src/viewer/internal.h void mcview_growbuf_init (WView * view);
view              269 src/viewer/internal.h void mcview_growbuf_done (WView * view);
view              270 src/viewer/internal.h void mcview_growbuf_free (WView * view);
view              271 src/viewer/internal.h off_t mcview_growbuf_filesize (WView * view);
view              272 src/viewer/internal.h void mcview_growbuf_read_until (WView * view, off_t ofs);
view              273 src/viewer/internal.h gboolean mcview_get_byte_growing_buffer (WView * view, off_t byte_index, int *retval);
view              274 src/viewer/internal.h char *mcview_get_ptr_growing_buffer (WView * view, off_t byte_index);
view              277 src/viewer/internal.h void mcview_display_hex (WView * view);
view              278 src/viewer/internal.h gboolean mcview_hexedit_save_changes (WView * view);
view              279 src/viewer/internal.h void mcview_toggle_hexedit_mode (WView * view);
view              280 src/viewer/internal.h void mcview_hexedit_free_change_list (WView * view);
view              284 src/viewer/internal.h void mcview_toggle_magic_mode (WView * view);
view              285 src/viewer/internal.h void mcview_toggle_wrap_mode (WView * view);
view              286 src/viewer/internal.h void mcview_toggle_nroff_mode (WView * view);
view              287 src/viewer/internal.h void mcview_toggle_hex_mode (WView * view);
view              288 src/viewer/internal.h void mcview_init (WView * view);
view              289 src/viewer/internal.h void mcview_done (WView * view);
view              291 src/viewer/internal.h void mcview_select_encoding (WView * view);
view              292 src/viewer/internal.h void mcview_set_codeset (WView * view);
view              294 src/viewer/internal.h void mcview_show_error (WView * view, const char *error);
view              295 src/viewer/internal.h off_t mcview_bol (WView * view, off_t current, off_t limit);
view              296 src/viewer/internal.h off_t mcview_eol (WView * view, off_t current);
view              298 src/viewer/internal.h int mcview_calc_percent (WView * view, off_t p);
view              301 src/viewer/internal.h void mcview_move_up (WView * view, off_t lines);
view              302 src/viewer/internal.h void mcview_move_down (WView * view, off_t lines);
view              303 src/viewer/internal.h void mcview_move_left (WView * view, off_t columns);
view              304 src/viewer/internal.h void mcview_move_right (WView * view, off_t columns);
view              305 src/viewer/internal.h void mcview_moveto_top (WView * view);
view              306 src/viewer/internal.h void mcview_moveto_bottom (WView * view);
view              307 src/viewer/internal.h void mcview_moveto_bol (WView * view);
view              308 src/viewer/internal.h void mcview_moveto_eol (WView * view);
view              309 src/viewer/internal.h void mcview_moveto_offset (WView * view, off_t offset);
view              310 src/viewer/internal.h void mcview_moveto (WView * view, off_t, off_t col);
view              311 src/viewer/internal.h void mcview_coord_to_offset (WView * view, off_t * ret_offset, off_t line, off_t column);
view              312 src/viewer/internal.h void mcview_offset_to_coord (WView * view, off_t * ret_line, off_t * ret_column, off_t offset);
view              313 src/viewer/internal.h void mcview_place_cursor (WView * view);
view              314 src/viewer/internal.h void mcview_moveto_match (WView * view);
view              317 src/viewer/internal.h int mcview__get_nroff_real_len (WView * view, off_t start, off_t length);
view              318 src/viewer/internal.h mcview_nroff_t *mcview_nroff_seq_new_num (WView * view, off_t lc_index);
view              319 src/viewer/internal.h mcview_nroff_t *mcview_nroff_seq_new (WView * view);
view              326 src/viewer/internal.h gboolean mcview_search_init (WView * view);
view              327 src/viewer/internal.h void mcview_search_deinit (WView * view);
view              331 src/viewer/internal.h void mcview_do_search (WView * view, off_t want_search_start);
view              348 src/viewer/internal.h mcview_is_in_panel (WView *view)
view              350 src/viewer/internal.h     return (view->dpy_frame_size != 0);
view              356 src/viewer/internal.h mcview_may_still_grow (WView *view)
view              358 src/viewer/internal.h     return (view->growbuf_in_use && !view->growbuf_finished);
view              375 src/viewer/internal.h mcview_get_byte_file (WView *view, off_t byte_index, int *retval)
view              377 src/viewer/internal.h     g_assert (view->datasource == DS_FILE);
view              379 src/viewer/internal.h     mcview_file_load_data (view, byte_index);
view              380 src/viewer/internal.h     if (mcview_already_loaded (view->ds_file_offset, byte_index, view->ds_file_datalen))
view              383 src/viewer/internal.h             *retval = view->ds_file_data[byte_index - view->ds_file_offset];
view              394 src/viewer/internal.h mcview_get_byte (WView *view, off_t offset, int *retval)
view              396 src/viewer/internal.h     switch (view->datasource)
view              400 src/viewer/internal.h         return mcview_get_byte_growing_buffer (view, offset, retval);
view              402 src/viewer/internal.h         return mcview_get_byte_file (view, offset, retval);
view              404 src/viewer/internal.h         return mcview_get_byte_string (view, offset, retval);
view              406 src/viewer/internal.h         return mcview_get_byte_none (view, offset, retval);
view              415 src/viewer/internal.h mcview_get_byte_indexed (WView *view, off_t base, off_t ofs, int *retval)
view              418 src/viewer/internal.h         return mcview_get_byte (view, base + ofs, retval);
view              429 src/viewer/internal.h mcview_count_backspaces (WView *view, off_t offset)
view              434 src/viewer/internal.h     while (offset >= 2 * backspaces && mcview_get_byte (view, offset - 2 * backspaces, &c)
view              444 src/viewer/internal.h mcview_is_nroff_sequence (WView *view, off_t offset)
view              450 src/viewer/internal.h     if (!mcview_get_byte_indexed (view, offset, 1, &c1) || c1 != '\b')
view              453 src/viewer/internal.h     if (!mcview_get_byte_indexed (view, offset, 0, &c0) || !g_ascii_isprint (c0))
view              456 src/viewer/internal.h     if (!mcview_get_byte_indexed (view, offset, 2, &c2) || !g_ascii_isprint (c2))
view              465 src/viewer/internal.h mcview_growbuf_read_all_data (WView *view)
view              467 src/viewer/internal.h     mcview_growbuf_read_until (view, OFFSETTYPE_MAX);
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, TRUE);
view              221 src/viewer/lib.c     view->filename_vpath = NULL;
view              222 src/viewer/lib.c     vfs_path_free (view->workdir_vpath, TRUE);
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     if (view->coord_cache != NULL)
view              231 src/viewer/lib.c         g_ptr_array_free (view->coord_cache, TRUE);
view              232 src/viewer/lib.c         view->coord_cache = NULL;
view              235 src/viewer/lib.c     if (view->converter == INVALID_CONV)
view              236 src/viewer/lib.c         view->converter = str_cnv_from_term;
view              238 src/viewer/lib.c     if (view->converter != str_cnv_from_term)
view              240 src/viewer/lib.c         str_close_conv (view->converter);
view              241 src/viewer/lib.c         view->converter = str_cnv_from_term;
view              244 src/viewer/lib.c     mcview_search_deinit (view);
view              245 src/viewer/lib.c     view->search = NULL;
view              246 src/viewer/lib.c     view->last_search_string = NULL;
view              247 src/viewer/lib.c     mcview_hexedit_free_change_list (view);
view              249 src/viewer/lib.c     if (mc_global.mc_run_mode == MC_RUN_VIEWER && view->dir != NULL)
view              252 src/viewer/lib.c         dir_list_free_list (view->dir);
view              253 src/viewer/lib.c         g_free (view->dir);
view              254 src/viewer/lib.c         g_free (view->dir_idx);
view              257 src/viewer/lib.c     view->dir = NULL;
view              264 src/viewer/lib.c mcview_set_codeset (WView *view)
view              268 src/viewer/lib.c     view->utf8 = TRUE;
view              278 src/viewer/lib.c             if (view->converter != str_cnv_from_term)
view              279 src/viewer/lib.c                 str_close_conv (view->converter);
view              280 src/viewer/lib.c             view->converter = conv;
view              282 src/viewer/lib.c         view->utf8 = (gboolean) str_isutf8 (cp_id);
view              283 src/viewer/lib.c         view->dpy_wrap_dirty = TRUE;
view              290 src/viewer/lib.c mcview_select_encoding (WView *view)
view              293 src/viewer/lib.c         mcview_set_codeset (view);
view              300 src/viewer/lib.c mcview_show_error (WView *view, const char *msg)
view              302 src/viewer/lib.c     if (mcview_is_in_panel (view))
view              303 src/viewer/lib.c         mcview_set_datasource_string (view, msg);
view              314 src/viewer/lib.c mcview_bol (WView *view, off_t current, off_t limit)
view              318 src/viewer/lib.c     filesize = mcview_get_filesize (view);
view              323 src/viewer/lib.c     if (!mcview_get_byte (view, current, &c))
view              327 src/viewer/lib.c         if (!mcview_get_byte (view, current - 1, &c))
view              334 src/viewer/lib.c         if (!mcview_get_byte (view, current - 1, &c))
view              349 src/viewer/lib.c mcview_eol (WView *view, off_t current)
view              358 src/viewer/lib.c         if (!mcview_get_byte (view, current, &c))
view              380 src/viewer/lib.c     const WView *view;
view              386 src/viewer/lib.c     view = (const WView *) widget_find_by_type (CONST_WIDGET (h), mcview_callback);
view              387 src/viewer/lib.c     modified = view->hexedit_mode && (view->change_list != NULL) ? "(*) " : "    ";
view              388 src/viewer/lib.c     view_filename = vfs_path_as_str (view->filename_vpath);
view              392 src/viewer/lib.c     file_label = view_filename != NULL ? view_filename : view->command != NULL ? view->command : "";
view              402 src/viewer/lib.c mcview_calc_percent (WView *view, off_t p)
view              407 src/viewer/lib.c     if (view->status_area.cols < 1 || (view->status_area.x + view->status_area.cols) < 4)
view              409 src/viewer/lib.c     if (mcview_may_still_grow (view))
view              412 src/viewer/lib.c     filesize = mcview_get_filesize (view);
view              413 src/viewer/lib.c     if (view->mode_flags.hex && filesize > 0)
view               93 src/viewer/mcviewer.c     WView *view = (WView *) w;
view               94 src/viewer/mcviewer.c     const WRect *r = &view->data_area;
view              100 src/viewer/mcviewer.c         if (mcview_is_in_panel (view))
view              120 src/viewer/mcviewer.c         if (!view->mode_flags.wrap)
view              129 src/viewer/mcviewer.c                 mcview_move_left (view, 1);
view              139 src/viewer/mcviewer.c                 mcview_move_right (view, 1);
view              153 src/viewer/mcviewer.c                     mcview_move_up (view, r->lines / 2);
view              155 src/viewer/mcviewer.c                     mcview_move_up (view, 1);
view              167 src/viewer/mcviewer.c                     mcview_move_down (view, r->lines / 2);
view              169 src/viewer/mcviewer.c                     mcview_move_down (view, 1);
view              177 src/viewer/mcviewer.c         mcview_move_up (view, 2);
view              181 src/viewer/mcviewer.c         mcview_move_down (view, 2);
view              190 src/viewer/mcviewer.c         mcview_update (view);
view              200 src/viewer/mcviewer.c     WView *view;
view              203 src/viewer/mcviewer.c     view = g_new0 (WView, 1);
view              204 src/viewer/mcviewer.c     w = WIDGET (view);
view              210 src/viewer/mcviewer.c     mcview_clear_mode_flags (&view->mode_flags);
view              211 src/viewer/mcviewer.c     view->hexedit_mode = FALSE;
view              212 src/viewer/mcviewer.c     view->hex_keymap = viewer_hex_map;
view              213 src/viewer/mcviewer.c     view->hexview_in_text = FALSE;
view              214 src/viewer/mcviewer.c     view->locked = FALSE;
view              216 src/viewer/mcviewer.c     view->dpy_frame_size = is_panel ? 1 : 0;
view              217 src/viewer/mcviewer.c     view->converter = str_cnv_from_term;
view              219 src/viewer/mcviewer.c     mcview_init (view);
view              222 src/viewer/mcviewer.c         mcview_toggle_hex_mode (view);
view              224 src/viewer/mcviewer.c         mcview_toggle_nroff_mode (view);
view              226 src/viewer/mcviewer.c         mcview_toggle_wrap_mode (view);
view              228 src/viewer/mcviewer.c         mcview_toggle_magic_mode (view);
view              230 src/viewer/mcviewer.c     return view;
view              285 src/viewer/mcviewer.c mcview_load (WView *view, const char *command, const char *file, int start_line,
view              291 src/viewer/mcviewer.c     g_assert (view->bytes_per_line != 0);
view              293 src/viewer/mcviewer.c     view->filename_vpath = vfs_path_from_str (file);
view              298 src/viewer/mcviewer.c         vfs_path_free (view->workdir_vpath, TRUE);
view              305 src/viewer/mcviewer.c             view->workdir_vpath = vfs_path_append_new (p, file, (char *) NULL);
view              316 src/viewer/mcviewer.c             view->workdir_vpath = vfs_path_from_str (dir);
view              321 src/viewer/mcviewer.c     if (!mcview_is_in_panel (view))
view              322 src/viewer/mcviewer.c         view->dpy_text_column = 0;
view              325 src/viewer/mcviewer.c     mcview_set_codeset (view);
view              328 src/viewer/mcviewer.c     if (command != NULL && (view->mode_flags.magic || file == NULL || file[0] == '\0'))
view              329 src/viewer/mcviewer.c         retval = mcview_load_command_output (view, command);
view              343 src/viewer/mcviewer.c             mcview_close_datasource (view);
view              344 src/viewer/mcviewer.c             mcview_show_error (view, tmp);
view              345 src/viewer/mcviewer.c             vfs_path_free (view->filename_vpath, TRUE);
view              346 src/viewer/mcviewer.c             view->filename_vpath = NULL;
view              347 src/viewer/mcviewer.c             vfs_path_free (view->workdir_vpath, TRUE);
view              348 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, tmp);
view              360 src/viewer/mcviewer.c             vfs_path_free (view->filename_vpath, TRUE);
view              361 src/viewer/mcviewer.c             view->filename_vpath = NULL;
view              362 src/viewer/mcviewer.c             vfs_path_free (view->workdir_vpath, TRUE);
view              363 src/viewer/mcviewer.c             view->workdir_vpath = NULL;
view              370 src/viewer/mcviewer.c             mcview_close_datasource (view);
view              371 src/viewer/mcviewer.c             mcview_show_error (view, _("Cannot view: not a regular file"));
view              372 src/viewer/mcviewer.c             vfs_path_free (view->filename_vpath, TRUE);
view              373 src/viewer/mcviewer.c             view->filename_vpath = NULL;
view              374 src/viewer/mcviewer.c             vfs_path_free (view->workdir_vpath, TRUE);
view              375 src/viewer/mcviewer.c             view->workdir_vpath = NULL;
view              382 src/viewer/mcviewer.c             mcview_set_datasource_vfs_pipe (view, fd);
view              386 src/viewer/mcviewer.c             if (view->mode_flags.magic)
view              408 src/viewer/mcviewer.c                         mcview_close_datasource (view);
view              409 src/viewer/mcviewer.c                         mcview_show_error (view, tmp);
view              420 src/viewer/mcviewer.c             mcview_set_datasource_file (view, fd, &st);
view              426 src/viewer/mcviewer.c     view->command = g_strdup (command);
view              427 src/viewer/mcviewer.c     view->dpy_start = 0;
view              428 src/viewer/mcviewer.c     view->dpy_paragraph_skip_lines = 0;
view              429 src/viewer/mcviewer.c     mcview_state_machine_init (&view->dpy_state_top, 0);
view              430 src/viewer/mcviewer.c     view->dpy_wrap_dirty = FALSE;
view              431 src/viewer/mcviewer.c     view->force_max = -1;
view              432 src/viewer/mcviewer.c     view->dpy_text_column = 0;
view              434 src/viewer/mcviewer.c     mcview_compute_areas (view);
view              435 src/viewer/mcviewer.c     mcview_update_bytes_per_line (view);
view              437 src/viewer/mcviewer.c     if (mcview_remember_file_position && view->filename_vpath != NULL && start_line == 0)
view              442 src/viewer/mcviewer.c         load_file_position (view->filename_vpath, &line, &col, &new_offset, &view->saved_bookmarks);
view              443 src/viewer/mcviewer.c         max_offset = mcview_get_filesize (view) - 1;
view              448 src/viewer/mcviewer.c         if (!view->mode_flags.hex)
view              450 src/viewer/mcviewer.c             view->dpy_start = mcview_bol (view, new_offset, 0);
view              451 src/viewer/mcviewer.c             view->dpy_wrap_dirty = TRUE;
view              455 src/viewer/mcviewer.c             view->dpy_start = new_offset - new_offset % view->bytes_per_line;
view              456 src/viewer/mcviewer.c             view->hex_cursor = new_offset;
view              460 src/viewer/mcviewer.c         mcview_moveto (view, start_line - 1, 0);
view              462 src/viewer/mcviewer.c     view->search_start = search_start;
view              463 src/viewer/mcviewer.c     view->search_end = search_end;
view              464 src/viewer/mcviewer.c     view->hexedit_lownibble = FALSE;
view              465 src/viewer/mcviewer.c     view->hexview_in_text = FALSE;
view              466 src/viewer/mcviewer.c     view->change_list = NULL;
view               50 src/viewer/mcviewer.h extern gboolean mcview_load (WView * view, const char *command, const char *file, int start_line,
view               73 src/viewer/move.c mcview_scroll_to_cursor (WView *view)
view               75 src/viewer/move.c     if (view->mode_flags.hex)
view               77 src/viewer/move.c         off_t bytes = view->bytes_per_line;
view               78 src/viewer/move.c         off_t cursor = view->hex_cursor;
view               79 src/viewer/move.c         off_t topleft = view->dpy_start;
view               82 src/viewer/move.c         displaysize = view->data_area.lines * bytes;
view               87 src/viewer/move.c         view->dpy_start = topleft;
view               88 src/viewer/move.c         view->dpy_paragraph_skip_lines = 0;
view               89 src/viewer/move.c         view->dpy_wrap_dirty = TRUE;
view               96 src/viewer/move.c mcview_movement_fixups (WView *view, gboolean reset_search)
view               98 src/viewer/move.c     mcview_scroll_to_cursor (view);
view              102 src/viewer/move.c         view->search_start = view->mode_flags.hex ? view->hex_cursor : view->dpy_start;
view              103 src/viewer/move.c         view->search_end = view->search_start;
view              106 src/viewer/move.c     view->dirty++;
view              114 src/viewer/move.c mcview_move_up (WView *view, off_t lines)
view              116 src/viewer/move.c     if (!view->mode_flags.hex)
view              117 src/viewer/move.c         mcview_ascii_move_up (view, lines);
view              122 src/viewer/move.c         bytes = lines * view->bytes_per_line;
view              124 src/viewer/move.c         if (view->hex_cursor < bytes)
view              125 src/viewer/move.c             view->hex_cursor %= view->bytes_per_line;
view              128 src/viewer/move.c             view->hex_cursor -= bytes;
view              129 src/viewer/move.c             if (view->hex_cursor < view->dpy_start)
view              131 src/viewer/move.c                 view->dpy_start = DOZ (view->dpy_start, bytes);
view              132 src/viewer/move.c                 view->dpy_paragraph_skip_lines = 0;
view              133 src/viewer/move.c                 view->dpy_wrap_dirty = TRUE;
view              138 src/viewer/move.c     mcview_movement_fixups (view, TRUE);
view              144 src/viewer/move.c mcview_move_down (WView *view, off_t lines)
view              148 src/viewer/move.c     last_byte = mcview_get_filesize (view);
view              150 src/viewer/move.c     if (!view->mode_flags.hex)
view              151 src/viewer/move.c         mcview_ascii_move_down (view, lines);
view              156 src/viewer/move.c         limit = DOZ (last_byte, (off_t) view->bytes_per_line);
view              158 src/viewer/move.c         for (i = 0; i < lines && view->hex_cursor < limit; i++)
view              160 src/viewer/move.c             view->hex_cursor += view->bytes_per_line;
view              164 src/viewer/move.c                 view->dpy_start += view->bytes_per_line;
view              165 src/viewer/move.c                 view->dpy_paragraph_skip_lines = 0;
view              166 src/viewer/move.c                 view->dpy_wrap_dirty = TRUE;
view              171 src/viewer/move.c     mcview_movement_fixups (view, TRUE);
view              177 src/viewer/move.c mcview_move_left (WView *view, off_t columns)
view              179 src/viewer/move.c     if (view->mode_flags.hex)
view              181 src/viewer/move.c         off_t old_cursor = view->hex_cursor;
view              185 src/viewer/move.c         if (view->hexview_in_text || !view->hexedit_lownibble)
view              186 src/viewer/move.c             if (view->hex_cursor > 0)
view              187 src/viewer/move.c                 view->hex_cursor--;
view              189 src/viewer/move.c         if (!view->hexview_in_text)
view              190 src/viewer/move.c             if (old_cursor > 0 || view->hexedit_lownibble)
view              191 src/viewer/move.c                 view->hexedit_lownibble = !view->hexedit_lownibble;
view              193 src/viewer/move.c     else if (!view->mode_flags.wrap)
view              194 src/viewer/move.c         view->dpy_text_column = DOZ (view->dpy_text_column, columns);
view              196 src/viewer/move.c     mcview_movement_fixups (view, FALSE);
view              202 src/viewer/move.c mcview_move_right (WView *view, off_t columns)
view              204 src/viewer/move.c     if (view->mode_flags.hex)
view              207 src/viewer/move.c         off_t old_cursor = view->hex_cursor;
view              209 src/viewer/move.c         last_byte = mcview_get_filesize (view);
view              214 src/viewer/move.c         if (view->hexview_in_text || view->hexedit_lownibble)
view              215 src/viewer/move.c             if (view->hex_cursor < last_byte)
view              216 src/viewer/move.c                 view->hex_cursor++;
view              218 src/viewer/move.c         if (!view->hexview_in_text)
view              219 src/viewer/move.c             if (old_cursor < last_byte || !view->hexedit_lownibble)
view              220 src/viewer/move.c                 view->hexedit_lownibble = !view->hexedit_lownibble;
view              222 src/viewer/move.c     else if (!view->mode_flags.wrap)
view              223 src/viewer/move.c         view->dpy_text_column += columns;
view              225 src/viewer/move.c     mcview_movement_fixups (view, FALSE);
view              231 src/viewer/move.c mcview_moveto_top (WView *view)
view              233 src/viewer/move.c     view->dpy_start = 0;
view              234 src/viewer/move.c     view->dpy_paragraph_skip_lines = 0;
view              235 src/viewer/move.c     mcview_state_machine_init (&view->dpy_state_top, 0);
view              236 src/viewer/move.c     view->hex_cursor = 0;
view              237 src/viewer/move.c     view->dpy_text_column = 0;
view              238 src/viewer/move.c     mcview_movement_fixups (view, TRUE);
view              244 src/viewer/move.c mcview_moveto_bottom (WView *view)
view              248 src/viewer/move.c     mcview_update_filesize (view);
view              250 src/viewer/move.c     if (view->growbuf_in_use)
view              251 src/viewer/move.c         mcview_growbuf_read_all_data (view);
view              253 src/viewer/move.c     filesize = mcview_get_filesize (view);
view              255 src/viewer/move.c     if (view->mode_flags.hex)
view              257 src/viewer/move.c         view->hex_cursor = DOZ (filesize, 1);
view              258 src/viewer/move.c         mcview_movement_fixups (view, TRUE);
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, view->data_area.lines);
view              272 src/viewer/move.c mcview_moveto_bol (WView *view)
view              274 src/viewer/move.c     if (!view->mode_flags.hex)
view              275 src/viewer/move.c         mcview_ascii_moveto_bol (view);
view              278 src/viewer/move.c         view->hex_cursor -= view->hex_cursor % view->bytes_per_line;
view              279 src/viewer/move.c         view->dpy_text_column = 0;
view              282 src/viewer/move.c     mcview_movement_fixups (view, TRUE);
view              288 src/viewer/move.c mcview_moveto_eol (WView *view)
view              292 src/viewer/move.c     if (!view->mode_flags.hex)
view              293 src/viewer/move.c         mcview_ascii_moveto_eol (view);
view              298 src/viewer/move.c         bol = mcview_offset_rounddown (view->hex_cursor, view->bytes_per_line);
view              300 src/viewer/move.c         if (mcview_get_byte_indexed (view, bol, view->bytes_per_line - 1, NULL))
view              301 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 = DOZ (filesize, 1);
view              309 src/viewer/move.c     mcview_movement_fixups (view, FALSE);
view              315 src/viewer/move.c mcview_moveto_offset (WView *view, off_t offset)
view              317 src/viewer/move.c     if (view->mode_flags.hex)
view              319 src/viewer/move.c         view->hex_cursor = offset;
view              320 src/viewer/move.c         view->dpy_start = offset - offset % view->bytes_per_line;
view              321 src/viewer/move.c         view->dpy_paragraph_skip_lines = 0;
view              322 src/viewer/move.c         view->dpy_wrap_dirty = TRUE;
view              326 src/viewer/move.c         view->dpy_start = offset;
view              327 src/viewer/move.c         view->dpy_paragraph_skip_lines = 0;
view              328 src/viewer/move.c         view->dpy_wrap_dirty = TRUE;
view              331 src/viewer/move.c     mcview_movement_fixups (view, TRUE);
view              337 src/viewer/move.c mcview_moveto (WView *view, off_t line, off_t col)
view              341 src/viewer/move.c     mcview_coord_to_offset (view, &offset, line, col);
view              342 src/viewer/move.c     mcview_moveto_offset (view, offset);
view              348 src/viewer/move.c mcview_coord_to_offset (WView *view, off_t *ret_offset, off_t line, off_t column)
view              355 src/viewer/move.c     mcview_ccache_lookup (view, &coord, CCACHE_OFFSET);
view              362 src/viewer/move.c mcview_offset_to_coord (WView *view, off_t *ret_line, off_t *ret_column, off_t offset)
view              367 src/viewer/move.c     mcview_ccache_lookup (view, &coord, CCACHE_LINECOL);
view              370 src/viewer/move.c     *ret_column = view->mode_flags.nroff ? coord.cc_nroff_column : coord.cc_column;
view              376 src/viewer/move.c mcview_place_cursor (WView *view)
view              378 src/viewer/move.c     const WRect *r = &view->data_area;
view              379 src/viewer/move.c     int col = view->cursor_col;
view              381 src/viewer/move.c     if (!view->hexview_in_text && view->hexedit_lownibble)
view              384 src/viewer/move.c     widget_gotoyx (view, r->y + view->cursor_row, r->x + col);
view              393 src/viewer/move.c mcview_moveto_match (WView *view)
view              395 src/viewer/move.c     if (view->mode_flags.hex)
view              397 src/viewer/move.c         view->hex_cursor = view->search_start;
view              398 src/viewer/move.c         view->hexedit_lownibble = FALSE;
view              399 src/viewer/move.c         view->dpy_start = view->search_start - view->search_start % view->bytes_per_line;
view              400 src/viewer/move.c         view->dpy_end = view->search_end - view->search_end % view->bytes_per_line;
view              401 src/viewer/move.c         view->dpy_paragraph_skip_lines = 0;
view              402 src/viewer/move.c         view->dpy_wrap_dirty = TRUE;
view              406 src/viewer/move.c         view->dpy_start = mcview_bol (view, view->search_start, 0);
view              407 src/viewer/move.c         view->dpy_paragraph_skip_lines = 0;
view              408 src/viewer/move.c         view->dpy_wrap_dirty = TRUE;
view              411 src/viewer/move.c     mcview_scroll_to_cursor (view);
view              412 src/viewer/move.c     view->dirty++;
view               67 src/viewer/nroff.c     if (nroff->view->utf8)
view               69 src/viewer/nroff.c         if (!mcview_get_utf (nroff->view, nroff_index, &c, &nroff->char_length))
view               73 src/viewer/nroff.c             if (!mcview_get_byte (nroff->view, nroff_index, &c) || !g_ascii_isprint (c))
view               81 src/viewer/nroff.c         if (!mcview_get_byte (nroff->view, nroff_index, &c))
view               95 src/viewer/nroff.c mcview__get_nroff_real_len (WView *view, off_t start, off_t length)
view              101 src/viewer/nroff.c     if (!view->mode_flags.nroff)
view              104 src/viewer/nroff.c     nroff = mcview_nroff_seq_new_num (view, start);
view              131 src/viewer/nroff.c mcview_nroff_seq_new_num (WView *view, off_t lc_index)
view              139 src/viewer/nroff.c         nroff->view = view;
view              148 src/viewer/nroff.c mcview_nroff_seq_new (WView *view)
view              150 src/viewer/nroff.c     return mcview_nroff_seq_new_num (view, (off_t) 0);
view              178 src/viewer/nroff.c     if (!mcview_get_byte (nroff->view, nroff->index + nroff->char_length, &next) || next != '\b')
view              267 src/viewer/nroff.c     if (!mcview_get_byte (nroff->view, prev_index, &prev) || prev != '\b')
view               68 src/viewer/search.c     WView *view;
view               92 src/viewer/search.c         percent = mcview_calc_percent (vsm->view, vsm->offset);
view               95 src/viewer/search.c         label_set_textv (ssm->label, _("Searching %s: %3d%%"), vsm->view->last_search_string,
view               98 src/viewer/search.c         label_set_textv (ssm->label, _("Searching %s"), vsm->view->last_search_string);
view              120 src/viewer/search.c mcview_search_update_steps (WView *view)
view              124 src/viewer/search.c     filesize = mcview_get_filesize (view);
view              127 src/viewer/search.c         view->update_steps = filesize / 100;
view              129 src/viewer/search.c         view->update_steps = 40000;
view              132 src/viewer/search.c     if (view->update_steps < 20000)
view              133 src/viewer/search.c         view->update_steps = 20000;
view              136 src/viewer/search.c     if (view->update_steps > 40000)
view              137 src/viewer/search.c         view->update_steps = 40000;
view              145 src/viewer/search.c     WView *view = ssm->view;
view              147 src/viewer/search.c     view->search_numNeedSkipChar = 0;
view              152 src/viewer/search.c         search_end = mcview_get_filesize (view);
view              157 src/viewer/search.c             view->search_nroff_seq->index = search_start;
view              158 src/viewer/search.c             mcview_nroff_seq_info (view->search_nroff_seq);
view              160 src/viewer/search.c             if (search_end > search_start + (off_t) view->search->original.str->len
view              161 src/viewer/search.c                 && mc_search_is_fixed_search_str (view->search))
view              162 src/viewer/search.c                 search_end = search_start + view->search->original.str->len;
view              164 src/viewer/search.c             ok = mc_search_run (view->search, (void *) ssm, search_start, search_end, len);
view              165 src/viewer/search.c             if (ok && view->search->normal_offset == search_start)
view              167 src/viewer/search.c                 if (view->mode_flags.nroff)
view              168 src/viewer/search.c                     view->search->normal_offset++;
view              174 src/viewer/search.c             if (!ok && view->search->error != MC_SEARCH_E_NOTFOUND)
view              180 src/viewer/search.c         mc_search_set_error (view->search, MC_SEARCH_E_NOTFOUND, "%s", _(STR_E_NOTFOUND));
view              183 src/viewer/search.c     view->search_nroff_seq->index = search_start;
view              184 src/viewer/search.c     mcview_nroff_seq_info (view->search_nroff_seq);
view              186 src/viewer/search.c     return mc_search_run (view->search, (void *) ssm, search_start, search_end, len);
view              192 src/viewer/search.c mcview_search_show_result (WView *view, size_t match_len)
view              197 src/viewer/search.c         view->mode_flags.nroff
view              198 src/viewer/search.c         ? mcview__get_nroff_real_len (view, view->search->start_buffer,
view              199 src/viewer/search.c                                       view->search->normal_offset - view->search->start_buffer) : 0;
view              200 src/viewer/search.c     view->search_start = view->search->normal_offset + nroff_len;
view              202 src/viewer/search.c     if (!view->mode_flags.hex)
view              203 src/viewer/search.c         view->search_start++;
view              206 src/viewer/search.c         view->mode_flags.nroff ? mcview__get_nroff_real_len (view, view->search_start - 1,
view              208 src/viewer/search.c     view->search_end = view->search_start + match_len + nroff_len;
view              210 src/viewer/search.c     mcview_moveto_match (view);
view              218 src/viewer/search.c mcview_search_init (WView *view)
view              221 src/viewer/search.c     view->search = mc_search_new (view->last_search_string, cp_source);
view              223 src/viewer/search.c     view->search = mc_search_new (view->last_search_string, NULL);
view              226 src/viewer/search.c     view->search_nroff_seq = mcview_nroff_seq_new (view);
view              228 src/viewer/search.c     if (view->search == NULL)
view              231 src/viewer/search.c     view->search->search_type = mcview_search_options.type;
view              233 src/viewer/search.c     view->search->is_all_charsets = mcview_search_options.all_codepages;
view              235 src/viewer/search.c     view->search->is_case_sensitive = mcview_search_options.case_sens;
view              236 src/viewer/search.c     view->search->whole_words = mcview_search_options.whole_words;
view              237 src/viewer/search.c     view->search->search_fn = mcview_search_cmd_callback;
view              238 src/viewer/search.c     view->search->update_fn = mcview_search_update_cmd_callback;
view              246 src/viewer/search.c mcview_search_deinit (WView *view)
view              248 src/viewer/search.c     mc_search_free (view->search);
view              249 src/viewer/search.c     g_free (view->last_search_string);
view              250 src/viewer/search.c     mcview_nroff_seq_free (&view->search_nroff_seq);
view              258 src/viewer/search.c     WView *view = ((const mcview_search_status_msg_t *) user_data)->view;
view              261 src/viewer/search.c     if (!view->mode_flags.nroff)
view              263 src/viewer/search.c         mcview_get_byte (view, char_offset, current_char);
view              267 src/viewer/search.c     if (view->search_numNeedSkipChar != 0)
view              269 src/viewer/search.c         view->search_numNeedSkipChar--;
view              274 src/viewer/search.c         || search_cb_char_curr_index >= view->search_nroff_seq->char_length)
view              277 src/viewer/search.c             mcview_nroff_seq_next (view->search_nroff_seq);
view              280 src/viewer/search.c         if (view->search_nroff_seq->char_length > 1)
view              281 src/viewer/search.c             g_unichar_to_utf8 (view->search_nroff_seq->current_char, search_cb_char_buffer);
view              283 src/viewer/search.c             search_cb_char_buffer[0] = (char) view->search_nroff_seq->current_char;
view              285 src/viewer/search.c         if (view->search_nroff_seq->type != NROFF_TYPE_NONE)
view              287 src/viewer/search.c             switch (view->search_nroff_seq->type)
view              290 src/viewer/search.c                 view->search_numNeedSkipChar = 1 + view->search_nroff_seq->char_length; /* real char length and 0x8 */
view              293 src/viewer/search.c                 view->search_numNeedSkipChar = 2;       /* underline symbol and ox8 */
view              315 src/viewer/search.c     WView *view = vsm->view;
view              323 src/viewer/search.c         if (vsm->offset <= view->update_activate)
view              325 src/viewer/search.c             view->update_activate -= view->update_steps;
view              332 src/viewer/search.c         if (vsm->offset >= view->update_activate)
view              334 src/viewer/search.c             view->update_activate += view->update_steps;
view              351 src/viewer/search.c mcview_do_search (WView *view, off_t want_search_start)
view              356 src/viewer/search.c     off_t orig_search_start = view->search_start;
view              361 src/viewer/search.c     view->search_start = want_search_start;
view              364 src/viewer/search.c     if (view->search_start != 0)
view              366 src/viewer/search.c         if (!view->mode_flags.nroff)
view              367 src/viewer/search.c             search_start = view->search_start + (mcview_search_options.backwards ? -2 : 0);
view              374 src/viewer/search.c                 nroff = mcview_nroff_seq_new_num (view, view->search_start);
view              377 src/viewer/search.c                         -(mcview__get_nroff_real_len (view, nroff->index - 1, 2) +
view              386 src/viewer/search.c                 search_start = mcview__get_nroff_real_len (view, view->search_start + 1, 2);
view              388 src/viewer/search.c             search_start += view->search_start;
view              396 src/viewer/search.c     mcview_search_update_steps (view);
view              398 src/viewer/search.c     view->update_activate = search_start;
view              401 src/viewer/search.c     vsm.view = view;
view              411 src/viewer/search.c         if (view->growbuf_in_use)
view              412 src/viewer/search.c             growbufsize = mcview_growbuf_filesize (view);
view              414 src/viewer/search.c             growbufsize = view->search->original.str->len;
view              416 src/viewer/search.c         if (mcview_find (&vsm, search_start, mcview_get_filesize (view), &match_len))
view              418 src/viewer/search.c             mcview_search_show_result (view, match_len);
view              427 src/viewer/search.c         if (view->search->error != MC_SEARCH_E_NOTFOUND)
view              430 src/viewer/search.c         search_start = growbufsize - view->search->original.str->len;
view              432 src/viewer/search.c     while (search_start > 0 && mcview_may_still_grow (view));
view              435 src/viewer/search.c     if (view->growbuf_in_use && !found && view->search->error == MC_SEARCH_E_NOTFOUND
view              437 src/viewer/search.c         && mcview_find (&vsm, search_start, mcview_get_filesize (view), &match_len))
view              439 src/viewer/search.c         mcview_search_show_result (view, match_len);
view              445 src/viewer/search.c     if (orig_search_start != 0 && (!found && view->search->error == MC_SEARCH_E_NOTFOUND)
view              448 src/viewer/search.c         view->search_start = orig_search_start;
view              449 src/viewer/search.c         mcview_update (view);
view              458 src/viewer/search.c             view->update_activate = 0;
view              461 src/viewer/search.c             vsm.view = view;
view              470 src/viewer/search.c                 mcview_search_show_result (view, match_len);
view              480 src/viewer/search.c         view->search_start = orig_search_start;
view              481 src/viewer/search.c         mcview_update (view);
view              483 src/viewer/search.c         if (view->search->error == MC_SEARCH_E_NOTFOUND)
view              485 src/viewer/search.c         else if (view->search->error_str != NULL)
view              486 src/viewer/search.c             query_dialog (_("Search"), view->search->error_str, D_NORMAL, 1, _("&Dismiss"));
view              488 src/viewer/search.c     view->dirty++;