edit 68 src/editor/bookmark.c double_marks (WEdit *edit, edit_book_mark_t *p) edit 70 src/editor/bookmark.c (void) edit; edit 82 src/editor/bookmark.c book_mark_find (WEdit *edit, long line) edit 86 src/editor/bookmark.c if (edit->book_mark == NULL) edit 89 src/editor/bookmark.c edit->book_mark = g_new0 (edit_book_mark_t, 1); edit 90 src/editor/bookmark.c edit->book_mark->line = -1; edit 91 src/editor/bookmark.c return edit->book_mark; edit 94 src/editor/bookmark.c for (p = edit->book_mark; p != NULL; p = p->next) edit 103 src/editor/bookmark.c edit->book_mark = p; edit 104 src/editor/bookmark.c return double_marks (edit, p); edit 109 src/editor/bookmark.c edit->book_mark = p; edit 110 src/editor/bookmark.c return double_marks (edit, p); edit 114 src/editor/bookmark.c for (p = edit->book_mark; p != NULL; p = p->prev) edit 125 src/editor/bookmark.c edit->book_mark = p; edit 126 src/editor/bookmark.c return double_marks (edit, p); edit 131 src/editor/bookmark.c edit->book_mark = p; edit 132 src/editor/bookmark.c return double_marks (edit, p); edit 154 src/editor/bookmark.c book_mark_query_color (WEdit *edit, long line, int c) edit 156 src/editor/bookmark.c if (edit->book_mark != NULL) edit 160 src/editor/bookmark.c for (p = book_mark_find (edit, line); p != NULL; p = p->prev) edit 176 src/editor/bookmark.c book_mark_insert (WEdit *edit, long line, int c) edit 180 src/editor/bookmark.c p = book_mark_find (edit, line); edit 188 src/editor/bookmark.c edit->force |= REDRAW_LINE; edit 204 src/editor/bookmark.c edit->force |= REDRAW_LINE; edit 218 src/editor/bookmark.c book_mark_clear (WEdit *edit, long line, int c) edit 223 src/editor/bookmark.c if (edit->book_mark == NULL) edit 226 src/editor/bookmark.c for (p = book_mark_find (edit, line); p != NULL; p = q) edit 232 src/editor/bookmark.c edit->book_mark = p->prev; edit 237 src/editor/bookmark.c edit->force |= REDRAW_LINE; edit 242 src/editor/bookmark.c if (edit->book_mark->line == -1 && edit->book_mark->next == NULL) edit 243 src/editor/bookmark.c MC_PTR_FREE (edit->book_mark); edit 252 src/editor/bookmark.c book_mark_flush (WEdit *edit, int c) edit 256 src/editor/bookmark.c if (edit->book_mark == NULL) edit 259 src/editor/bookmark.c while (edit->book_mark->prev != NULL) edit 260 src/editor/bookmark.c edit->book_mark = edit->book_mark->prev; edit 262 src/editor/bookmark.c for (q = edit->book_mark->next; q != NULL; q = p) edit 273 src/editor/bookmark.c if (edit->book_mark->next == NULL) edit 274 src/editor/bookmark.c MC_PTR_FREE (edit->book_mark); edit 276 src/editor/bookmark.c edit->force |= REDRAW_PAGE; edit 283 src/editor/bookmark.c book_mark_inc (WEdit *edit, long line) edit 285 src/editor/bookmark.c if (edit->book_mark != NULL) edit 289 src/editor/bookmark.c p = book_mark_find (edit, line); edit 299 src/editor/bookmark.c book_mark_dec (WEdit *edit, long line) edit 301 src/editor/bookmark.c if (edit->book_mark != NULL) edit 305 src/editor/bookmark.c p = book_mark_find (edit, line); edit 315 src/editor/bookmark.c book_mark_serialize (WEdit *edit, int color) edit 317 src/editor/bookmark.c if (edit->serialized_bookmarks != NULL) edit 318 src/editor/bookmark.c g_array_set_size (edit->serialized_bookmarks, 0); edit 320 src/editor/bookmark.c if (edit->book_mark != NULL) edit 324 src/editor/bookmark.c if (edit->serialized_bookmarks == NULL) edit 325 src/editor/bookmark.c edit->serialized_bookmarks = g_array_sized_new (FALSE, FALSE, sizeof (size_t), edit 328 src/editor/bookmark.c for (p = book_mark_find (edit, 0); p != NULL; p = p->next) edit 330 src/editor/bookmark.c g_array_append_val (edit->serialized_bookmarks, p->line); edit 338 src/editor/bookmark.c book_mark_restore (WEdit *edit, int color) edit 340 src/editor/bookmark.c if (edit->serialized_bookmarks != NULL) edit 344 src/editor/bookmark.c for (i = 0; i < edit->serialized_bookmarks->len; i++) edit 345 src/editor/bookmark.c book_mark_insert (edit, g_array_index (edit->serialized_bookmarks, size_t, i), color); edit 138 src/editor/edit-impl.h void edit_user_menu (WEdit * edit, const char *menu_file, int selected_entry); edit 141 src/editor/edit-impl.h off_t edit_move_forward3 (const WEdit * edit, off_t current, long cols, off_t upto); edit 142 src/editor/edit-impl.h void edit_scroll_screen_over_cursor (WEdit * edit); edit 143 src/editor/edit-impl.h void edit_render_keypress (WEdit * edit); edit 144 src/editor/edit-impl.h void edit_scroll_upward (WEdit * edit, long i); edit 145 src/editor/edit-impl.h void edit_scroll_downward (WEdit * edit, long i); edit 146 src/editor/edit-impl.h void edit_scroll_right (WEdit * edit, long i); edit 147 src/editor/edit-impl.h void edit_scroll_left (WEdit * edit, long i); edit 148 src/editor/edit-impl.h void edit_move_up (WEdit * edit, long i, gboolean do_scroll); edit 149 src/editor/edit-impl.h void edit_move_down (WEdit * edit, long i, gboolean do_scroll); edit 150 src/editor/edit-impl.h void edit_move_to_prev_col (WEdit * edit, off_t p); edit 151 src/editor/edit-impl.h long edit_get_col (const WEdit * edit); edit 152 src/editor/edit-impl.h void edit_update_curs_row (WEdit * edit); edit 153 src/editor/edit-impl.h void edit_update_curs_col (WEdit * edit); edit 154 src/editor/edit-impl.h void edit_find_bracket (WEdit * edit); edit 155 src/editor/edit-impl.h gboolean edit_reload_line (WEdit * edit, const edit_arg_t * arg); edit 156 src/editor/edit-impl.h void edit_set_codeset (WEdit * edit); edit 158 src/editor/edit-impl.h void edit_block_copy_cmd (WEdit * edit); edit 159 src/editor/edit-impl.h void edit_block_move_cmd (WEdit * edit); edit 160 src/editor/edit-impl.h gboolean edit_block_delete_cmd (WEdit * edit); edit 161 src/editor/edit-impl.h void edit_delete_line (WEdit * edit); edit 163 src/editor/edit-impl.h int edit_delete (WEdit * edit, gboolean byte_delete); edit 164 src/editor/edit-impl.h int edit_backspace (WEdit * edit, gboolean byte_delete); edit 165 src/editor/edit-impl.h void edit_insert (WEdit * edit, int c); edit 166 src/editor/edit-impl.h void edit_insert_over (WEdit * edit); edit 167 src/editor/edit-impl.h void edit_cursor_move (WEdit * edit, off_t increment); edit 168 src/editor/edit-impl.h void edit_push_undo_action (WEdit * edit, long c); edit 169 src/editor/edit-impl.h void edit_push_redo_action (WEdit * edit, long c); edit 170 src/editor/edit-impl.h void edit_push_key_press (WEdit * edit); edit 171 src/editor/edit-impl.h void edit_insert_ahead (WEdit * edit, int c); edit 172 src/editor/edit-impl.h off_t edit_write_stream (WEdit * edit, FILE * f); edit 175 src/editor/edit-impl.h gboolean edit_save_confirm_cmd (WEdit * edit); edit 176 src/editor/edit-impl.h gboolean edit_save_as_cmd (WEdit * edit); edit 177 src/editor/edit-impl.h WEdit *edit_init (WEdit * edit, const WRect * r, const edit_arg_t * arg); edit 178 src/editor/edit-impl.h gboolean edit_clean (WEdit * edit); edit 179 src/editor/edit-impl.h gboolean edit_ok_to_exit (WEdit * edit); edit 185 src/editor/edit-impl.h gboolean edit_close_cmd (WEdit * edit); edit 186 src/editor/edit-impl.h void edit_mark_cmd (WEdit * edit, gboolean unmark); edit 187 src/editor/edit-impl.h void edit_mark_current_word_cmd (WEdit * edit); edit 188 src/editor/edit-impl.h void edit_mark_current_line_cmd (WEdit * edit); edit 189 src/editor/edit-impl.h void edit_set_markers (WEdit * edit, off_t m1, off_t m2, long c1, long c2); edit 190 src/editor/edit-impl.h void edit_push_markers (WEdit * edit); edit 192 src/editor/edit-impl.h gboolean edit_save_block (WEdit * edit, const char *filename, off_t start, off_t finish); edit 193 src/editor/edit-impl.h gboolean edit_save_block_cmd (WEdit * edit); edit 194 src/editor/edit-impl.h gboolean edit_insert_file_cmd (WEdit * edit); edit 196 src/editor/edit-impl.h off_t edit_insert_file (WEdit * edit, const vfs_path_t * filename_vpath); edit 197 src/editor/edit-impl.h gboolean edit_load_back_cmd (WEdit * edit); edit 198 src/editor/edit-impl.h gboolean edit_load_forward_cmd (WEdit * edit); edit 199 src/editor/edit-impl.h void edit_block_process_cmd (WEdit * edit, int macro_number); edit 205 src/editor/edit-impl.h void edit_date_cmd (WEdit * edit); edit 206 src/editor/edit-impl.h void edit_goto_cmd (WEdit * edit); edit 207 src/editor/edit-impl.h gboolean eval_marks (WEdit * edit, off_t * start_mark, off_t * end_mark); edit 208 src/editor/edit-impl.h void edit_status (WEdit * edit, gboolean active); edit 209 src/editor/edit-impl.h void edit_execute_key_command (WEdit * edit, long command, int char_for_insertion); edit 210 src/editor/edit-impl.h void edit_update_screen (WEdit * edit); edit 211 src/editor/edit-impl.h void edit_save_size (WEdit * edit); edit 212 src/editor/edit-impl.h gboolean edit_handle_move_resize (WEdit * edit, long command); edit 213 src/editor/edit-impl.h void edit_toggle_fullscreen (WEdit * edit); edit 216 src/editor/edit-impl.h void edit_word_wrap (WEdit * edit); edit 217 src/editor/edit-impl.h int edit_sort_cmd (WEdit * edit); edit 218 src/editor/edit-impl.h int edit_ext_cmd (WEdit * edit); edit 220 src/editor/edit-impl.h gboolean edit_copy_to_X_buf_cmd (WEdit * edit); edit 221 src/editor/edit-impl.h gboolean edit_cut_to_X_buf_cmd (WEdit * edit); edit 222 src/editor/edit-impl.h gboolean edit_paste_from_X_buf_cmd (WEdit * edit); edit 224 src/editor/edit-impl.h void edit_select_codepage_cmd (WEdit * edit); edit 225 src/editor/edit-impl.h void edit_insert_literal_cmd (WEdit * edit); edit 227 src/editor/edit-impl.h void edit_paste_from_history (WEdit * edit); edit 229 src/editor/edit-impl.h void edit_set_filename (WEdit * edit, const vfs_path_t * name_vpath); edit 231 src/editor/edit-impl.h MC_MOCKABLE void edit_load_syntax (WEdit * edit, GPtrArray * pnames, const char *type); edit 232 src/editor/edit-impl.h void edit_free_syntax_rules (WEdit * edit); edit 233 src/editor/edit-impl.h MC_MOCKABLE int edit_get_syntax_color (WEdit * edit, off_t byte_index); edit 234 src/editor/edit-impl.h void edit_syntax_dialog (WEdit * edit); edit 236 src/editor/edit-impl.h void book_mark_insert (WEdit * edit, long line, int c); edit 237 src/editor/edit-impl.h gboolean book_mark_query_color (WEdit * edit, long line, int c); edit 238 src/editor/edit-impl.h struct edit_book_mark_t *book_mark_find (WEdit * edit, long line); edit 239 src/editor/edit-impl.h gboolean book_mark_clear (WEdit * edit, long line, int c); edit 240 src/editor/edit-impl.h void book_mark_flush (WEdit * edit, int c); edit 241 src/editor/edit-impl.h void book_mark_inc (WEdit * edit, long line); edit 242 src/editor/edit-impl.h void book_mark_dec (WEdit * edit, long line); edit 243 src/editor/edit-impl.h void book_mark_serialize (WEdit * edit, int color); edit 244 src/editor/edit-impl.h void book_mark_restore (WEdit * edit, int color); edit 246 src/editor/edit-impl.h gboolean edit_line_is_blank (WEdit * edit, long line); edit 249 src/editor/edit-impl.h void edit_mail_dialog (WEdit * edit); edit 250 src/editor/edit-impl.h void format_paragraph (WEdit * edit, gboolean force); edit 253 src/editor/edit-impl.h void edit_execute_cmd (WEdit * edit, long command, int char_for_insertion); edit 267 src/editor/edit-impl.h edit_reload (WEdit *edit, const vfs_path_t *filename_vpath) edit 273 src/editor/edit-impl.h return edit_reload_line (edit, &arg); edit 285 src/editor/edit.c edit_insert_stream (WEdit *edit, FILE *f) edit 291 src/editor/edit.c edit_insert (edit, c); edit 307 src/editor/edit.c check_file_access (WEdit *edit, const vfs_path_t *filename_vpath, struct stat *st) edit 331 src/editor/edit.c edit->delete_file = 1; edit 366 src/editor/edit.c edit->delete_file = 0; edit 409 src/editor/edit.c edit_load_file (WEdit *edit) edit 414 src/editor/edit.c if (edit_find_filter (edit->filename_vpath) >= 0) edit 421 src/editor/edit.c if (edit->filename_vpath != NULL) edit 427 src/editor/edit.c if (!vfs_file_is_local (edit->filename_vpath)) edit 431 src/editor/edit.c if (!check_file_access (edit, edit->filename_vpath, &edit->stat1)) edit 433 src/editor/edit.c edit_clean (edit); edit 445 src/editor/edit.c edit_buffer_init (&edit->buffer, edit->stat1.st_size); edit 447 src/editor/edit.c if (!edit_load_file_fast (&edit->buffer, edit->filename_vpath)) edit 449 src/editor/edit.c edit_clean (edit); edit 455 src/editor/edit.c edit_buffer_init (&edit->buffer, 0); edit 457 src/editor/edit.c if (edit->filename_vpath != NULL edit 458 src/editor/edit.c && *(vfs_path_get_by_index (edit->filename_vpath, 0)->path) != '\0') edit 460 src/editor/edit.c edit->undo_stack_disable = 1; edit 461 src/editor/edit.c if (edit_insert_file (edit, edit->filename_vpath) < 0) edit 463 src/editor/edit.c edit_clean (edit); edit 466 src/editor/edit.c edit->undo_stack_disable = 0; edit 469 src/editor/edit.c edit->lb = LB_ASIS; edit 483 src/editor/edit.c edit_load_position (WEdit *edit, gboolean load_position) edit 489 src/editor/edit.c if (edit->filename_vpath == NULL edit 490 src/editor/edit.c || *(vfs_path_get_by_index (edit->filename_vpath, 0)->path) == '\0') edit 493 src/editor/edit.c load_file_position (edit->filename_vpath, &line, &column, &offset, &edit->serialized_bookmarks); edit 495 src/editor/edit.c book_mark_restore (edit, BOOK_MARK_COLOR); edit 502 src/editor/edit.c edit_move_to_line (edit, line - 1); edit 503 src/editor/edit.c edit->prev_col = column; edit 507 src/editor/edit.c edit_cursor_move (edit, offset); edit 508 src/editor/edit.c line = edit->buffer.curs_line; edit 509 src/editor/edit.c edit->search_start = edit->buffer.curs1; edit 512 src/editor/edit.c b = edit_buffer_get_current_bol (&edit->buffer); edit 513 src/editor/edit.c edit_move_to_prev_col (edit, b); edit 514 src/editor/edit.c edit_move_display (edit, line - (WIDGET (edit)->rect.lines / 2)); edit 521 src/editor/edit.c edit_save_position (WEdit *edit) edit 523 src/editor/edit.c if (edit->filename_vpath == NULL edit 524 src/editor/edit.c || *(vfs_path_get_by_index (edit->filename_vpath, 0)->path) == '\0') edit 527 src/editor/edit.c book_mark_serialize (edit, BOOK_MARK_COLOR); edit 528 src/editor/edit.c save_file_position (edit->filename_vpath, edit->buffer.curs_line + 1, edit->curs_col, edit 529 src/editor/edit.c edit->buffer.curs1, edit->serialized_bookmarks); edit 530 src/editor/edit.c edit->serialized_bookmarks = NULL; edit 537 src/editor/edit.c edit_purge_widget (WEdit *edit) edit 540 src/editor/edit.c char *start = (char *) edit + sizeof (Widget); edit 552 src/editor/edit.c edit_pop_undo_action (WEdit *edit) edit 555 src/editor/edit.c unsigned long sp = edit->undo_stack_pointer; edit 557 src/editor/edit.c if (sp == edit->undo_stack_bottom) edit 560 src/editor/edit.c sp = (sp - 1) & edit->undo_stack_size_mask; edit 561 src/editor/edit.c c = edit->undo_stack[sp]; edit 565 src/editor/edit.c edit->undo_stack_pointer = (edit->undo_stack_pointer - 1) & edit->undo_stack_size_mask; edit 569 src/editor/edit.c if (sp == edit->undo_stack_bottom) edit 572 src/editor/edit.c c = edit->undo_stack[(sp - 1) & edit->undo_stack_size_mask]; edit 573 src/editor/edit.c if (edit->undo_stack[sp] == -2) edit 576 src/editor/edit.c edit->undo_stack_pointer = sp; edit 579 src/editor/edit.c edit->undo_stack[sp]++; edit 587 src/editor/edit.c edit_pop_redo_action (WEdit *edit) edit 590 src/editor/edit.c unsigned long sp = edit->redo_stack_pointer; edit 592 src/editor/edit.c if (sp == edit->redo_stack_bottom) edit 595 src/editor/edit.c sp = (sp - 1) & edit->redo_stack_size_mask; edit 596 src/editor/edit.c c = edit->redo_stack[sp]; edit 599 src/editor/edit.c edit->redo_stack_pointer = (edit->redo_stack_pointer - 1) & edit->redo_stack_size_mask; edit 603 src/editor/edit.c if (sp == edit->redo_stack_bottom) edit 606 src/editor/edit.c c = edit->redo_stack[(sp - 1) & edit->redo_stack_size_mask]; edit 607 src/editor/edit.c if (edit->redo_stack[sp] == -2) edit 608 src/editor/edit.c edit->redo_stack_pointer = sp; edit 610 src/editor/edit.c edit->redo_stack[sp]++; edit 618 src/editor/edit.c get_prev_undo_action (WEdit *edit) edit 621 src/editor/edit.c unsigned long sp = edit->undo_stack_pointer; edit 623 src/editor/edit.c if (sp == edit->undo_stack_bottom) edit 626 src/editor/edit.c sp = (sp - 1) & edit->undo_stack_size_mask; edit 627 src/editor/edit.c c = edit->undo_stack[sp]; edit 631 src/editor/edit.c if (sp == edit->undo_stack_bottom) edit 634 src/editor/edit.c c = edit->undo_stack[(sp - 1) & edit->undo_stack_size_mask]; edit 642 src/editor/edit.c edit_modification (WEdit *edit) edit 644 src/editor/edit.c edit->caches_valid = FALSE; edit 647 src/editor/edit.c if (edit->modified == 0 && edit->delete_file == 0) edit 648 src/editor/edit.c edit->locked = lock_file (edit->filename_vpath); edit 649 src/editor/edit.c edit->modified = 1; edit 705 src/editor/edit.c edit_find_line (WEdit *edit, long line) edit 711 src/editor/edit.c if (!edit->caches_valid) edit 713 src/editor/edit.c memset (edit->line_numbers, 0, sizeof (edit->line_numbers)); edit 714 src/editor/edit.c memset (edit->line_offsets, 0, sizeof (edit->line_offsets)); edit 716 src/editor/edit.c edit->line_numbers[1] = edit->buffer.curs_line; edit 717 src/editor/edit.c edit->line_offsets[1] = edit_buffer_get_current_bol (&edit->buffer); edit 718 src/editor/edit.c edit->line_numbers[2] = edit->buffer.lines; edit 719 src/editor/edit.c edit->line_offsets[2] = edit_buffer_get_bol (&edit->buffer, edit->buffer.size); edit 720 src/editor/edit.c edit->caches_valid = TRUE; edit 722 src/editor/edit.c if (line >= edit->buffer.lines) edit 723 src/editor/edit.c return edit->line_offsets[2]; edit 731 src/editor/edit.c n = labs (edit->line_numbers[i] - line); edit 739 src/editor/edit.c return edit->line_offsets[j]; /* know the offset exactly */ edit 744 src/editor/edit.c if (line > edit->line_numbers[j]) edit 745 src/editor/edit.c edit->line_offsets[i] = edit 746 src/editor/edit.c edit_buffer_get_forward_offset (&edit->buffer, edit->line_offsets[j], edit 747 src/editor/edit.c line - edit->line_numbers[j], 0); edit 749 src/editor/edit.c edit->line_offsets[i] = edit 750 src/editor/edit.c edit_buffer_get_backward_offset (&edit->buffer, edit->line_offsets[j], edit 751 src/editor/edit.c edit->line_numbers[j] - line); edit 752 src/editor/edit.c edit->line_numbers[i] = line; edit 753 src/editor/edit.c return edit->line_offsets[i]; edit 761 src/editor/edit.c edit_move_up_paragraph (WEdit *edit, gboolean do_scroll) edit 765 src/editor/edit.c if (edit->buffer.curs_line > 1) edit 767 src/editor/edit.c if (!edit_line_is_blank (edit, edit->buffer.curs_line)) edit 769 src/editor/edit.c for (i = edit->buffer.curs_line - 1; i != 0; i--) edit 770 src/editor/edit.c if (edit_line_is_blank (edit, i)) edit 773 src/editor/edit.c else if (edit_line_is_blank (edit, edit->buffer.curs_line - 1)) edit 775 src/editor/edit.c for (i = edit->buffer.curs_line - 1; i != 0; i--) edit 776 src/editor/edit.c if (!edit_line_is_blank (edit, i)) edit 784 src/editor/edit.c for (i = edit->buffer.curs_line - 1; i != 0; i--) edit 785 src/editor/edit.c if (edit_line_is_blank (edit, i)) edit 790 src/editor/edit.c edit_move_up (edit, edit->buffer.curs_line - i, do_scroll); edit 798 src/editor/edit.c edit_move_down_paragraph (WEdit *edit, gboolean do_scroll) edit 802 src/editor/edit.c if (edit->buffer.curs_line >= edit->buffer.lines - 1) edit 803 src/editor/edit.c i = edit->buffer.lines; edit 804 src/editor/edit.c else if (!edit_line_is_blank (edit, edit->buffer.curs_line)) edit 806 src/editor/edit.c for (i = edit->buffer.curs_line + 1; i != 0; i++) edit 807 src/editor/edit.c if (edit_line_is_blank (edit, i) || i >= edit->buffer.lines) edit 810 src/editor/edit.c else if (edit_line_is_blank (edit, edit->buffer.curs_line + 1)) edit 812 src/editor/edit.c for (i = edit->buffer.curs_line + 1; i != 0; i++) edit 813 src/editor/edit.c if (!edit_line_is_blank (edit, i) || i > edit->buffer.lines) edit 821 src/editor/edit.c for (i = edit->buffer.curs_line + 1; i != 0; i++) edit 822 src/editor/edit.c if (edit_line_is_blank (edit, i) || i >= edit->buffer.lines) edit 825 src/editor/edit.c edit_move_down (edit, i - edit->buffer.curs_line, do_scroll); edit 831 src/editor/edit.c edit_begin_page (WEdit *edit) edit 833 src/editor/edit.c edit_update_curs_row (edit); edit 834 src/editor/edit.c edit_move_up (edit, edit->curs_row, FALSE); edit 840 src/editor/edit.c edit_end_page (WEdit *edit) edit 842 src/editor/edit.c edit_update_curs_row (edit); edit 843 src/editor/edit.c edit_move_down (edit, WIDGET (edit)->rect.lines - edit->curs_row - 1, FALSE); edit 851 src/editor/edit.c edit_move_to_top (WEdit *edit) edit 853 src/editor/edit.c if (edit->buffer.curs_line != 0) edit 855 src/editor/edit.c edit_cursor_move (edit, -edit->buffer.curs1); edit 856 src/editor/edit.c edit_move_to_prev_col (edit, 0); edit 857 src/editor/edit.c edit->force |= REDRAW_PAGE; edit 858 src/editor/edit.c edit->search_start = 0; edit 859 src/editor/edit.c edit_update_curs_row (edit); edit 867 src/editor/edit.c edit_move_to_bottom (WEdit *edit) edit 869 src/editor/edit.c if (edit->buffer.curs_line < edit->buffer.lines) edit 871 src/editor/edit.c edit_move_down (edit, edit->buffer.lines - edit->curs_row, FALSE); edit 872 src/editor/edit.c edit->start_display = edit->buffer.size; edit 873 src/editor/edit.c edit->start_line = edit->buffer.lines; edit 874 src/editor/edit.c edit_scroll_upward (edit, WIDGET (edit)->rect.lines - 1); edit 875 src/editor/edit.c edit->force |= REDRAW_PAGE; edit 883 src/editor/edit.c edit_cursor_to_bol (WEdit *edit) edit 887 src/editor/edit.c b = edit_buffer_get_current_bol (&edit->buffer); edit 888 src/editor/edit.c edit_cursor_move (edit, b - edit->buffer.curs1); edit 889 src/editor/edit.c edit->search_start = edit->buffer.curs1; edit 890 src/editor/edit.c edit->prev_col = edit_get_col (edit); edit 891 src/editor/edit.c edit->over_col = 0; edit 898 src/editor/edit.c edit_cursor_to_eol (WEdit *edit) edit 902 src/editor/edit.c b = edit_buffer_get_current_eol (&edit->buffer); edit 903 src/editor/edit.c edit_cursor_move (edit, b - edit->buffer.curs1); edit 904 src/editor/edit.c edit->search_start = edit->buffer.curs1; edit 905 src/editor/edit.c edit->prev_col = edit_get_col (edit); edit 906 src/editor/edit.c edit->over_col = 0; edit 956 src/editor/edit.c edit_left_word_move (WEdit *edit, int s) edit 962 src/editor/edit.c if (edit->column_highlight edit 963 src/editor/edit.c && edit->mark1 != edit->mark2 edit 964 src/editor/edit.c && edit->over_col == 0 edit 965 src/editor/edit.c && edit->buffer.curs1 == edit_buffer_get_current_bol (&edit->buffer)) edit 967 src/editor/edit.c edit_cursor_move (edit, -1); edit 968 src/editor/edit.c if (edit->buffer.curs1 == 0) edit 970 src/editor/edit.c c1 = edit_buffer_get_previous_byte (&edit->buffer); edit 973 src/editor/edit.c c2 = edit_buffer_get_current_byte (&edit->buffer); edit 988 src/editor/edit.c edit_left_word_move_cmd (WEdit *edit) edit 990 src/editor/edit.c edit_left_word_move (edit, 0); edit 991 src/editor/edit.c edit->force |= REDRAW_PAGE; edit 997 src/editor/edit.c edit_right_word_move (WEdit *edit, int s) edit 1003 src/editor/edit.c if (edit->column_highlight edit 1004 src/editor/edit.c && edit->mark1 != edit->mark2 edit 1005 src/editor/edit.c && edit->over_col == 0 edit 1006 src/editor/edit.c && edit->buffer.curs1 == edit_buffer_get_current_eol (&edit->buffer)) edit 1008 src/editor/edit.c edit_cursor_move (edit, 1); edit 1009 src/editor/edit.c if (edit->buffer.curs1 >= edit->buffer.size) edit 1011 src/editor/edit.c c1 = edit_buffer_get_previous_byte (&edit->buffer); edit 1014 src/editor/edit.c c2 = edit_buffer_get_current_byte (&edit->buffer); edit 1029 src/editor/edit.c edit_right_word_move_cmd (WEdit *edit) edit 1031 src/editor/edit.c edit_right_word_move (edit, 0); edit 1032 src/editor/edit.c edit->force |= REDRAW_PAGE; edit 1038 src/editor/edit.c edit_right_char_move_cmd (WEdit *edit) edit 1044 src/editor/edit.c if (edit->utf8) edit 1046 src/editor/edit.c c = edit_buffer_get_utf (&edit->buffer, edit->buffer.curs1, &char_length); edit 1052 src/editor/edit.c c = edit_buffer_get_current_byte (&edit->buffer); edit 1055 src/editor/edit.c edit->over_col++; edit 1057 src/editor/edit.c edit_cursor_move (edit, char_length); edit 1063 src/editor/edit.c edit_left_char_move_cmd (WEdit *edit) edit 1067 src/editor/edit.c if (edit->column_highlight edit 1069 src/editor/edit.c && edit->mark1 != edit->mark2 edit 1070 src/editor/edit.c && edit->over_col == 0 && edit->buffer.curs1 == edit_buffer_get_current_bol (&edit->buffer)) edit 1073 src/editor/edit.c if (edit->utf8) edit 1075 src/editor/edit.c edit_buffer_get_prev_utf (&edit->buffer, edit->buffer.curs1, &char_length); edit 1081 src/editor/edit.c if (edit_options.cursor_beyond_eol && edit->over_col > 0) edit 1082 src/editor/edit.c edit->over_col--; edit 1084 src/editor/edit.c edit_cursor_move (edit, -char_length); edit 1094 src/editor/edit.c edit_move_updown (WEdit *edit, long lines, gboolean do_scroll, gboolean direction) edit 1097 src/editor/edit.c long l = direction ? edit->buffer.curs_line : edit->buffer.lines - edit->buffer.curs_line; edit 1106 src/editor/edit.c edit->force |= REDRAW_PAGE; edit 1110 src/editor/edit.c edit_scroll_upward (edit, lines); edit 1112 src/editor/edit.c edit_scroll_downward (edit, lines); edit 1114 src/editor/edit.c p = edit_buffer_get_current_bol (&edit->buffer); edit 1115 src/editor/edit.c p = direction ? edit_buffer_get_backward_offset (&edit->buffer, p, lines) : edit 1116 src/editor/edit.c edit_buffer_get_forward_offset (&edit->buffer, p, lines, 0); edit 1117 src/editor/edit.c edit_cursor_move (edit, p - edit->buffer.curs1); edit 1118 src/editor/edit.c edit_move_to_prev_col (edit, p); edit 1122 src/editor/edit.c if (edit->buffer.curs1 > 0 && edit->buffer.curs1 + 1 < edit->buffer.size edit 1123 src/editor/edit.c && edit_buffer_get_current_byte (&edit->buffer) >= 256) edit 1125 src/editor/edit.c edit_right_char_move_cmd (edit); edit 1126 src/editor/edit.c edit_left_char_move_cmd (edit); edit 1130 src/editor/edit.c edit->search_start = edit->buffer.curs1; edit 1131 src/editor/edit.c edit->found_len = 0; edit 1137 src/editor/edit.c edit_right_delete_word (WEdit *edit) edit 1139 src/editor/edit.c while (edit->buffer.curs1 < edit->buffer.size) edit 1143 src/editor/edit.c c1 = edit_delete (edit, TRUE); edit 1146 src/editor/edit.c c2 = edit_buffer_get_current_byte (&edit->buffer); edit 1159 src/editor/edit.c edit_left_delete_word (WEdit *edit) edit 1161 src/editor/edit.c while (edit->buffer.curs1 > 0) edit 1165 src/editor/edit.c c1 = edit_backspace (edit, TRUE); edit 1168 src/editor/edit.c c2 = edit_buffer_get_previous_byte (&edit->buffer); edit 1185 src/editor/edit.c edit_do_undo (WEdit *edit) edit 1190 src/editor/edit.c edit->undo_stack_disable = 1; /* don't record undo's onto undo stack! */ edit 1191 src/editor/edit.c edit->over_col = 0; edit 1193 src/editor/edit.c while ((ac = edit_pop_undo_action (edit)) < KEY_PRESS) edit 1202 src/editor/edit.c edit_cursor_move (edit, 1); edit 1205 src/editor/edit.c edit_cursor_move (edit, -1); edit 1209 src/editor/edit.c edit_backspace (edit, TRUE); edit 1213 src/editor/edit.c edit_delete (edit, TRUE); edit 1216 src/editor/edit.c edit->column_highlight = 1; edit 1219 src/editor/edit.c edit->column_highlight = 0; edit 1225 src/editor/edit.c edit_insert_ahead (edit, ac - 256); edit 1227 src/editor/edit.c edit_insert (edit, ac); edit 1231 src/editor/edit.c edit->mark1 = ac - MARK_1; edit 1232 src/editor/edit.c b = edit_buffer_get_bol (&edit->buffer, edit->mark1); edit 1233 src/editor/edit.c edit->column1 = (long) edit_move_forward3 (edit, b, 0, edit->mark1); edit 1237 src/editor/edit.c edit->mark2 = ac - MARK_2; edit 1238 src/editor/edit.c b = edit_buffer_get_bol (&edit->buffer, edit->mark2); edit 1239 src/editor/edit.c edit->column2 = (long) edit_move_forward3 (edit, b, 0, edit->mark2); edit 1243 src/editor/edit.c edit->end_mark_curs = ac - MARK_CURS; edit 1246 src/editor/edit.c edit->force |= REDRAW_PAGE; /* more than one pop usually means something big */ edit 1249 src/editor/edit.c if (edit->start_display > ac - KEY_PRESS) edit 1251 src/editor/edit.c edit->start_line -= edit 1252 src/editor/edit.c edit_buffer_count_lines (&edit->buffer, ac - KEY_PRESS, edit->start_display); edit 1253 src/editor/edit.c edit->force |= REDRAW_PAGE; edit 1255 src/editor/edit.c else if (edit->start_display < ac - KEY_PRESS) edit 1257 src/editor/edit.c edit->start_line += edit 1258 src/editor/edit.c edit_buffer_count_lines (&edit->buffer, edit->start_display, ac - KEY_PRESS); edit 1259 src/editor/edit.c edit->force |= REDRAW_PAGE; edit 1261 src/editor/edit.c edit->start_display = ac - KEY_PRESS; /* see push and pop above */ edit 1262 src/editor/edit.c edit_update_curs_row (edit); edit 1265 src/editor/edit.c edit->undo_stack_disable = 0; edit 1271 src/editor/edit.c edit_do_redo (WEdit *edit) edit 1276 src/editor/edit.c if (edit->redo_stack_reset) edit 1279 src/editor/edit.c edit->over_col = 0; edit 1281 src/editor/edit.c while ((ac = edit_pop_redo_action (edit)) < KEY_PRESS) edit 1290 src/editor/edit.c edit_cursor_move (edit, 1); edit 1293 src/editor/edit.c edit_cursor_move (edit, -1); edit 1296 src/editor/edit.c edit_backspace (edit, TRUE); edit 1299 src/editor/edit.c edit_delete (edit, TRUE); edit 1302 src/editor/edit.c edit->column_highlight = 1; edit 1305 src/editor/edit.c edit->column_highlight = 0; edit 1311 src/editor/edit.c edit_insert_ahead (edit, ac - 256); edit 1313 src/editor/edit.c edit_insert (edit, ac); edit 1317 src/editor/edit.c edit->mark1 = ac - MARK_1; edit 1318 src/editor/edit.c b = edit_buffer_get_bol (&edit->buffer, edit->mark1); edit 1319 src/editor/edit.c edit->column1 = (long) edit_move_forward3 (edit, b, 0, edit->mark1); edit 1323 src/editor/edit.c edit->mark2 = ac - MARK_2; edit 1324 src/editor/edit.c b = edit_buffer_get_bol (&edit->buffer, edit->mark2); edit 1325 src/editor/edit.c edit->column2 = (long) edit_move_forward3 (edit, b, 0, edit->mark2); edit 1329 src/editor/edit.c edit->force |= REDRAW_PAGE; edit 1332 src/editor/edit.c if (edit->start_display > ac - KEY_PRESS) edit 1334 src/editor/edit.c edit->start_line -= edit 1335 src/editor/edit.c edit_buffer_count_lines (&edit->buffer, ac - KEY_PRESS, edit->start_display); edit 1336 src/editor/edit.c edit->force |= REDRAW_PAGE; edit 1338 src/editor/edit.c else if (edit->start_display < ac - KEY_PRESS) edit 1340 src/editor/edit.c edit->start_line += edit 1341 src/editor/edit.c edit_buffer_count_lines (&edit->buffer, edit->start_display, ac - KEY_PRESS); edit 1342 src/editor/edit.c edit->force |= REDRAW_PAGE; edit 1344 src/editor/edit.c edit->start_display = ac - KEY_PRESS; /* see push and pop above */ edit 1345 src/editor/edit.c edit_update_curs_row (edit); edit 1354 src/editor/edit.c edit_group_undo (WEdit *edit) edit 1361 src/editor/edit.c cur_ac = get_prev_undo_action (edit); edit 1362 src/editor/edit.c edit_do_undo (edit); edit 1363 src/editor/edit.c ac = get_prev_undo_action (edit); edit 1375 src/editor/edit.c edit_delete_to_line_end (WEdit *edit) edit 1377 src/editor/edit.c while (edit_buffer_get_current_byte (&edit->buffer) != '\n' && edit->buffer.curs2 != 0) edit 1378 src/editor/edit.c edit_delete (edit, TRUE); edit 1384 src/editor/edit.c edit_delete_to_line_begin (WEdit *edit) edit 1386 src/editor/edit.c while (edit_buffer_get_previous_byte (&edit->buffer) != '\n' && edit->buffer.curs1 != 0) edit 1387 src/editor/edit.c edit_backspace (edit, TRUE); edit 1393 src/editor/edit.c is_aligned_on_a_tab (WEdit *edit) edit 1397 src/editor/edit.c edit_update_curs_col (edit); edit 1398 src/editor/edit.c curs_col = edit->curs_col % (TAB_SIZE * space_width); edit 1405 src/editor/edit.c right_of_four_spaces (WEdit *edit) edit 1411 src/editor/edit.c ch |= edit_buffer_get_byte (&edit->buffer, edit->buffer.curs1 - i); edit 1413 src/editor/edit.c return (ch == ' ' && is_aligned_on_a_tab (edit)); edit 1419 src/editor/edit.c left_of_four_spaces (WEdit *edit) edit 1424 src/editor/edit.c ch |= edit_buffer_get_byte (&edit->buffer, edit->buffer.curs1 + i); edit 1426 src/editor/edit.c return (ch == ' ' && is_aligned_on_a_tab (edit)); edit 1432 src/editor/edit.c edit_auto_indent (WEdit *edit) edit 1436 src/editor/edit.c p = edit->buffer.curs1; edit 1438 src/editor/edit.c p = edit_buffer_get_backward_offset (&edit->buffer, p, 1); edit 1444 src/editor/edit.c c = edit_buffer_get_byte (&edit->buffer, p++); edit 1447 src/editor/edit.c edit_insert (edit, c); edit 1454 src/editor/edit.c edit_double_newline (WEdit *edit) edit 1456 src/editor/edit.c edit_insert (edit, '\n'); edit 1457 src/editor/edit.c if (edit_buffer_get_current_byte (&edit->buffer) == '\n' edit 1458 src/editor/edit.c || edit_buffer_get_byte (&edit->buffer, edit->buffer.curs1 - 2) == '\n') edit 1460 src/editor/edit.c edit->force |= REDRAW_PAGE; edit 1461 src/editor/edit.c edit_insert (edit, '\n'); edit 1467 src/editor/edit.c insert_spaces_tab (WEdit *edit, gboolean half) edit 1471 src/editor/edit.c edit_update_curs_col (edit); edit 1476 src/editor/edit.c for (i = ((edit->curs_col / i) + 1) * i - edit->curs_col; i > 0; i -= space_width) edit 1477 src/editor/edit.c edit_insert (edit, ' '); edit 1483 src/editor/edit.c edit_tab_cmd (WEdit *edit) edit 1485 src/editor/edit.c if (edit_options.fake_half_tabs && is_in_indent (&edit->buffer)) edit 1490 src/editor/edit.c if (edit_options.fill_tabs_with_spaces || !right_of_four_spaces (edit)) edit 1491 src/editor/edit.c insert_spaces_tab (edit, TRUE); edit 1497 src/editor/edit.c edit_backspace (edit, TRUE); edit 1498 src/editor/edit.c edit_insert (edit, '\t'); edit 1502 src/editor/edit.c insert_spaces_tab (edit, FALSE); edit 1504 src/editor/edit.c edit_insert (edit, '\t'); edit 1510 src/editor/edit.c check_and_wrap_line (WEdit *edit) edit 1516 src/editor/edit.c edit_update_curs_col (edit); edit 1517 src/editor/edit.c if (edit->curs_col < edit_options.word_wrap_line_length) edit 1519 src/editor/edit.c curs = edit->buffer.curs1; edit 1525 src/editor/edit.c c = edit_buffer_get_byte (&edit->buffer, curs); edit 1528 src/editor/edit.c edit_insert (edit, '\n'); edit 1533 src/editor/edit.c off_t current = edit->buffer.curs1; edit 1534 src/editor/edit.c edit_cursor_move (edit, curs - edit->buffer.curs1 + 1); edit 1535 src/editor/edit.c edit_insert (edit, '\n'); edit 1536 src/editor/edit.c edit_cursor_move (edit, current - edit->buffer.curs1 + 1); edit 1553 src/editor/edit.c edit_get_bracket (WEdit *edit, gboolean in_screen, unsigned long furthest_bracket_search) edit 1560 src/editor/edit.c edit_update_curs_row (edit); edit 1561 src/editor/edit.c c = edit_buffer_get_current_byte (&edit->buffer); edit 1574 src/editor/edit.c for (q = edit->buffer.curs1 + inc;; q += inc) edit 1579 src/editor/edit.c if (q >= edit->buffer.size || q < 0) edit 1581 src/editor/edit.c a = edit_buffer_get_byte (&edit->buffer, q); edit 1588 src/editor/edit.c if (q < edit->start_display) edit 1592 src/editor/edit.c if (n++ >= WIDGET (edit)->rect.lines - edit->curs_row) /* out of screen */ edit 1608 src/editor/edit.c edit_goto_matching_bracket (WEdit *edit) edit 1612 src/editor/edit.c q = edit_get_bracket (edit, 0, 0); edit 1615 src/editor/edit.c edit->bracket = edit->buffer.curs1; edit 1616 src/editor/edit.c edit->force |= REDRAW_PAGE; edit 1617 src/editor/edit.c edit_cursor_move (edit, q - edit->buffer.curs1); edit 1624 src/editor/edit.c edit_move_block_to_right (WEdit *edit) edit 1629 src/editor/edit.c if (!eval_marks (edit, &start_mark, &end_mark)) edit 1632 src/editor/edit.c start_bol = edit_buffer_get_bol (&edit->buffer, start_mark); edit 1633 src/editor/edit.c cur_bol = edit_buffer_get_bol (&edit->buffer, end_mark - 1); edit 1639 src/editor/edit.c edit_cursor_move (edit, cur_bol - edit->buffer.curs1); edit 1640 src/editor/edit.c if (!edit_line_is_blank (edit, edit->buffer.curs_line)) edit 1643 src/editor/edit.c insert_spaces_tab (edit, edit_options.fake_half_tabs); edit 1645 src/editor/edit.c edit_insert (edit, '\t'); edit 1647 src/editor/edit.c b = edit_buffer_get_bol (&edit->buffer, cur_bol); edit 1648 src/editor/edit.c edit_cursor_move (edit, b - edit->buffer.curs1); edit 1654 src/editor/edit.c cur_bol = edit_buffer_get_bol (&edit->buffer, cur_bol - 1); edit 1658 src/editor/edit.c edit->force |= REDRAW_PAGE; edit 1664 src/editor/edit.c edit_move_block_to_left (WEdit *edit) edit 1669 src/editor/edit.c if (!eval_marks (edit, &start_mark, &end_mark)) edit 1672 src/editor/edit.c start_bol = edit_buffer_get_bol (&edit->buffer, start_mark); edit 1673 src/editor/edit.c cur_bol = edit_buffer_get_bol (&edit->buffer, end_mark - 1); edit 1680 src/editor/edit.c edit_cursor_move (edit, cur_bol - edit->buffer.curs1); edit 1684 src/editor/edit.c next_char = edit_buffer_get_current_byte (&edit->buffer); edit 1686 src/editor/edit.c edit_delete (edit, TRUE); edit 1694 src/editor/edit.c edit_delete (edit, TRUE); edit 1695 src/editor/edit.c next_char = edit_buffer_get_current_byte (&edit->buffer); edit 1702 src/editor/edit.c cur_bol = edit_buffer_get_bol (&edit->buffer, cur_bol - 1); edit 1706 src/editor/edit.c edit->force |= REDRAW_PAGE; edit 1730 src/editor/edit.c edit_insert_column_from_file (WEdit *edit, int file, off_t *start_pos, off_t *end_pos, edit 1738 src/editor/edit.c cursor = edit->buffer.curs1; edit 1739 src/editor/edit.c col = edit_get_col (edit); edit 1753 src/editor/edit.c edit_insert (edit, data[i]); edit 1759 src/editor/edit.c if (edit_buffer_get_current_byte (&edit->buffer) != '\n') edit 1760 src/editor/edit.c for (l = width - (edit_get_col (edit) - col); l > 0; l -= space_width) edit 1761 src/editor/edit.c edit_insert (edit, ' '); edit 1763 src/editor/edit.c for (p = edit->buffer.curs1;; p++) edit 1765 src/editor/edit.c if (p == edit->buffer.size) edit 1767 src/editor/edit.c edit_cursor_move (edit, edit->buffer.size - edit->buffer.curs1); edit 1768 src/editor/edit.c edit_insert_ahead (edit, '\n'); edit 1772 src/editor/edit.c if (edit_buffer_get_byte (&edit->buffer, p) == '\n') edit 1779 src/editor/edit.c edit_cursor_move (edit, edit_move_forward3 (edit, p, col, 0) - edit->buffer.curs1); edit 1781 src/editor/edit.c for (l = col - edit_get_col (edit); l >= space_width; l -= space_width) edit 1782 src/editor/edit.c edit_insert (edit, ' '); edit 1789 src/editor/edit.c *end_pos = edit->buffer.curs1; edit 1790 src/editor/edit.c edit_cursor_move (edit, cursor - edit->buffer.curs1); edit 1803 src/editor/edit.c edit_user_menu (WEdit *edit, const char *menu_file, int selected_entry) edit 1814 src/editor/edit.c curs = edit->buffer.curs1; edit 1815 src/editor/edit.c mark = eval_marks (edit, &start_mark, &end_mark); edit 1817 src/editor/edit.c edit_save_block (edit, block_file, start_mark, end_mark); edit 1820 src/editor/edit.c if (user_menu_cmd (CONST_WIDGET (edit), menu_file, selected_entry) edit 1828 src/editor/edit.c rc = edit_block_delete_cmd (edit); edit 1834 src/editor/edit.c ins_len = edit_insert_file (edit, block_file_vpath); edit 1836 src/editor/edit.c edit_set_markers (edit, start_mark, start_mark + ins_len, 0, 0); edit 1846 src/editor/edit.c edit_cursor_move (edit, curs - edit->buffer.curs1); edit 1847 src/editor/edit.c edit->force |= REDRAW_PAGE; edit 1848 src/editor/edit.c widget_draw (WIDGET (edit)); edit 1883 src/editor/edit.c edit_write_stream (WEdit *edit, FILE *f) edit 1887 src/editor/edit.c if (edit->lb == LB_ASIS) edit 1889 src/editor/edit.c for (i = 0; i < edit->buffer.size; i++) edit 1890 src/editor/edit.c if (fputc (edit_buffer_get_byte (&edit->buffer, i), f) < 0) edit 1896 src/editor/edit.c for (i = 0; i < edit->buffer.size; i++) edit 1900 src/editor/edit.c c = edit_buffer_get_byte (&edit->buffer, i); edit 1911 src/editor/edit.c c1 = edit_buffer_get_byte (&edit->buffer, i + 1); /* next char */ edit 1913 src/editor/edit.c switch (edit->lb) edit 1977 src/editor/edit.c return edit->buffer.size; edit 1992 src/editor/edit.c edit_insert_file (WEdit *edit, const vfs_path_t *filename_vpath) edit 1999 src/editor/edit.c current = edit->buffer.curs1; edit 2008 src/editor/edit.c edit_insert_stream (edit, f); edit 2013 src/editor/edit.c ins_len = edit->buffer.curs1 - current; edit 2014 src/editor/edit.c edit_cursor_move (edit, -ins_len); edit 2064 src/editor/edit.c blocklen = edit_insert_column_from_file (edit, file, &mark1, &mark2, &c1, &c2); edit 2065 src/editor/edit.c edit_set_markers (edit, edit->buffer.curs1, mark2, c1, c2); edit 2068 src/editor/edit.c if (!edit_options.persistent_selections && edit->modified) edit 2070 src/editor/edit.c if (!edit->column_highlight) edit 2071 src/editor/edit.c edit_push_undo_action (edit, COLUMN_OFF); edit 2072 src/editor/edit.c edit->column_highlight = 1; edit 2082 src/editor/edit.c edit_insert (edit, buf[i]); edit 2085 src/editor/edit.c if (!edit_options.persistent_selections && edit->modified) edit 2087 src/editor/edit.c edit_set_markers (edit, edit->buffer.curs1, current, 0, 0); edit 2088 src/editor/edit.c if (edit->column_highlight) edit 2089 src/editor/edit.c edit_push_undo_action (edit, COLUMN_ON); edit 2090 src/editor/edit.c edit->column_highlight = 0; edit 2096 src/editor/edit.c ins_len = edit->buffer.curs1 - current; edit 2097 src/editor/edit.c edit_cursor_move (edit, -ins_len); edit 2101 src/editor/edit.c edit->force |= REDRAW_PAGE; edit 2121 src/editor/edit.c edit_init (WEdit *edit, const WRect *r, const edit_arg_t *arg) edit 2129 src/editor/edit.c if (edit != NULL) edit 2135 src/editor/edit.c fullscreen = edit->fullscreen; edit 2136 src/editor/edit.c loc_prev = edit->loc_prev; edit 2138 src/editor/edit.c edit_purge_widget (edit); edit 2141 src/editor/edit.c edit->fullscreen = fullscreen; edit 2142 src/editor/edit.c edit->loc_prev = loc_prev; edit 2148 src/editor/edit.c edit = g_malloc0 (sizeof (WEdit)); edit 2151 src/editor/edit.c w = WIDGET (edit); edit 2156 src/editor/edit.c edit->fullscreen = TRUE; edit 2157 src/editor/edit.c edit_save_size (edit); edit 2160 src/editor/edit.c edit->drag_state = MCEDIT_DRAG_NONE; edit 2162 src/editor/edit.c edit->stat1.st_mode = S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH; edit 2163 src/editor/edit.c edit->stat1.st_uid = getuid (); edit 2164 src/editor/edit.c edit->stat1.st_gid = getgid (); edit 2165 src/editor/edit.c edit->stat1.st_mtime = 0; edit 2168 src/editor/edit.c edit->attrs_ok = (mc_fgetflags (arg->file_vpath, &edit->attrs) == 0); edit 2170 src/editor/edit.c edit->attrs_ok = FALSE; edit 2172 src/editor/edit.c edit->over_col = 0; edit 2173 src/editor/edit.c edit->bracket = -1; edit 2174 src/editor/edit.c edit->last_bracket = -1; edit 2175 src/editor/edit.c edit->force |= REDRAW_PAGE; edit 2180 src/editor/edit.c edit_set_filename (edit, arg->file_vpath); edit 2185 src/editor/edit.c edit_set_filename (edit, NULL); edit 2189 src/editor/edit.c edit->undo_stack_size = START_STACK_SIZE; edit 2190 src/editor/edit.c edit->undo_stack_size_mask = START_STACK_SIZE - 1; edit 2191 src/editor/edit.c edit->undo_stack = g_malloc0 ((edit->undo_stack_size + 10) * sizeof (long)); edit 2193 src/editor/edit.c edit->redo_stack_size = START_STACK_SIZE; edit 2194 src/editor/edit.c edit->redo_stack_size_mask = START_STACK_SIZE - 1; edit 2195 src/editor/edit.c edit->redo_stack = g_malloc0 ((edit->redo_stack_size + 10) * sizeof (long)); edit 2198 src/editor/edit.c edit->utf8 = FALSE; edit 2199 src/editor/edit.c edit->converter = str_cnv_from_term; edit 2200 src/editor/edit.c edit_set_codeset (edit); edit 2203 src/editor/edit.c if (!edit_load_file (edit)) edit 2207 src/editor/edit.c g_free (edit); edit 2211 src/editor/edit.c edit->loading_done = 1; edit 2212 src/editor/edit.c edit->modified = 0; edit 2213 src/editor/edit.c edit->locked = 0; edit 2214 src/editor/edit.c edit_load_syntax (edit, NULL, NULL); edit 2215 src/editor/edit.c edit_get_syntax_color (edit, -1); edit 2219 src/editor/edit.c edit_load_position (edit, TRUE); edit 2222 src/editor/edit.c edit_load_position (edit, FALSE); edit 2225 src/editor/edit.c edit_move_display (edit, line - 1); edit 2226 src/editor/edit.c edit_move_to_line (edit, line - 1); edit 2229 src/editor/edit.c edit_load_macro_cmd (edit); edit 2231 src/editor/edit.c return edit; edit 2238 src/editor/edit.c edit_clean (WEdit *edit) edit 2240 src/editor/edit.c if (edit == NULL) edit 2244 src/editor/edit.c if (edit->locked) edit 2245 src/editor/edit.c (void) unlock_file (edit->filename_vpath); edit 2249 src/editor/edit.c edit_save_position (edit); edit 2250 src/editor/edit.c else if (edit->serialized_bookmarks != NULL) edit 2251 src/editor/edit.c g_array_free (edit->serialized_bookmarks, TRUE); edit 2254 src/editor/edit.c if (edit->delete_file) edit 2255 src/editor/edit.c unlink (vfs_path_get_last_path_str (edit->filename_vpath)); edit 2257 src/editor/edit.c edit_free_syntax_rules (edit); edit 2258 src/editor/edit.c book_mark_flush (edit, -1); edit 2260 src/editor/edit.c edit_buffer_clean (&edit->buffer); edit 2262 src/editor/edit.c g_free (edit->undo_stack); edit 2263 src/editor/edit.c g_free (edit->redo_stack); edit 2264 src/editor/edit.c vfs_path_free (edit->filename_vpath, TRUE); edit 2265 src/editor/edit.c vfs_path_free (edit->dir_vpath, TRUE); edit 2266 src/editor/edit.c edit_search_deinit (edit); edit 2269 src/editor/edit.c if (edit->converter != str_cnv_from_term) edit 2270 src/editor/edit.c str_close_conv (edit->converter); edit 2273 src/editor/edit.c edit_purge_widget (edit); edit 2288 src/editor/edit.c edit_reload_line (WEdit *edit, const edit_arg_t *arg) edit 2290 src/editor/edit.c Widget *w = WIDGET (edit); edit 2296 src/editor/edit.c e->fullscreen = edit->fullscreen; edit 2297 src/editor/edit.c e->loc_prev = edit->loc_prev; edit 2305 src/editor/edit.c edit_clean (edit); edit 2306 src/editor/edit.c memcpy (edit, e, sizeof (*edit)); edit 2316 src/editor/edit.c edit_set_codeset (WEdit *edit) edit 2330 src/editor/edit.c if (edit->converter != str_cnv_from_term) edit 2331 src/editor/edit.c str_close_conv (edit->converter); edit 2332 src/editor/edit.c edit->converter = conv; edit 2337 src/editor/edit.c edit->utf8 = str_isutf8 (cp_id); edit 2388 src/editor/edit.c edit_push_undo_action (WEdit *edit, long c) edit 2390 src/editor/edit.c unsigned long sp = edit->undo_stack_pointer; edit 2394 src/editor/edit.c if (sp > edit->undo_stack_size - 10) edit 2398 src/editor/edit.c if (edit->undo_stack_size < (unsigned long) max_undo) edit 2402 src/editor/edit.c t = g_realloc (edit->undo_stack, (edit->undo_stack_size * 2 + 10) * sizeof (long)); edit 2405 src/editor/edit.c edit->undo_stack = t; edit 2406 src/editor/edit.c edit->undo_stack_size <<= 1; edit 2407 src/editor/edit.c edit->undo_stack_size_mask = edit->undo_stack_size - 1; edit 2411 src/editor/edit.c spm1 = (edit->undo_stack_pointer - 1) & edit->undo_stack_size_mask; edit 2412 src/editor/edit.c if (edit->undo_stack_disable) edit 2414 src/editor/edit.c edit_push_redo_action (edit, KEY_PRESS); edit 2415 src/editor/edit.c edit_push_redo_action (edit, c); edit 2419 src/editor/edit.c if (edit->redo_stack_reset) edit 2420 src/editor/edit.c edit->redo_stack_bottom = edit->redo_stack_pointer = 0; edit 2422 src/editor/edit.c if (edit->undo_stack_bottom != sp edit 2423 src/editor/edit.c && spm1 != edit->undo_stack_bottom edit 2424 src/editor/edit.c && ((sp - 2) & edit->undo_stack_size_mask) != edit->undo_stack_bottom) edit 2428 src/editor/edit.c if (edit->undo_stack[spm1] < 0) edit 2430 src/editor/edit.c d = edit->undo_stack[(sp - 2) & edit->undo_stack_size_mask]; edit 2431 src/editor/edit.c if (d == c && edit->undo_stack[spm1] > -1000000000) edit 2434 src/editor/edit.c edit->undo_stack[spm1]--; edit 2440 src/editor/edit.c d = edit->undo_stack[spm1]; edit 2445 src/editor/edit.c edit->undo_stack[sp] = -2; edit 2450 src/editor/edit.c edit->undo_stack[sp] = c; edit 2453 src/editor/edit.c edit->undo_stack_pointer = (edit->undo_stack_pointer + 1) & edit->undo_stack_size_mask; edit 2458 src/editor/edit.c c = (edit->undo_stack_pointer + 2) & edit->undo_stack_size_mask; edit 2459 src/editor/edit.c if ((unsigned long) c == edit->undo_stack_bottom || edit 2460 src/editor/edit.c (((unsigned long) c + 1) & edit->undo_stack_size_mask) == edit->undo_stack_bottom) edit 2463 src/editor/edit.c edit->undo_stack_bottom = (edit->undo_stack_bottom + 1) & edit->undo_stack_size_mask; edit 2465 src/editor/edit.c while (edit->undo_stack[edit->undo_stack_bottom] < KEY_PRESS edit 2466 src/editor/edit.c && edit->undo_stack_bottom != edit->undo_stack_pointer); edit 2469 src/editor/edit.c if (edit->undo_stack_pointer != edit->undo_stack_bottom edit 2470 src/editor/edit.c && edit->undo_stack[edit->undo_stack_bottom] < KEY_PRESS) edit 2472 src/editor/edit.c edit->undo_stack_bottom = edit->undo_stack_pointer = 0; edit 2479 src/editor/edit.c edit_push_redo_action (WEdit *edit, long c) edit 2481 src/editor/edit.c unsigned long sp = edit->redo_stack_pointer; edit 2484 src/editor/edit.c if (sp > edit->redo_stack_size - 10) edit 2488 src/editor/edit.c if (edit->redo_stack_size < (unsigned long) max_undo) edit 2492 src/editor/edit.c t = g_realloc (edit->redo_stack, (edit->redo_stack_size * 2 + 10) * sizeof (long)); edit 2495 src/editor/edit.c edit->redo_stack = t; edit 2496 src/editor/edit.c edit->redo_stack_size <<= 1; edit 2497 src/editor/edit.c edit->redo_stack_size_mask = edit->redo_stack_size - 1; edit 2501 src/editor/edit.c spm1 = (edit->redo_stack_pointer - 1) & edit->redo_stack_size_mask; edit 2503 src/editor/edit.c if (edit->redo_stack_bottom != sp edit 2504 src/editor/edit.c && spm1 != edit->redo_stack_bottom edit 2505 src/editor/edit.c && ((sp - 2) & edit->redo_stack_size_mask) != edit->redo_stack_bottom) edit 2509 src/editor/edit.c if (edit->redo_stack[spm1] < 0) edit 2511 src/editor/edit.c d = edit->redo_stack[(sp - 2) & edit->redo_stack_size_mask]; edit 2512 src/editor/edit.c if (d == c && edit->redo_stack[spm1] > -1000000000) edit 2515 src/editor/edit.c edit->redo_stack[spm1]--; edit 2521 src/editor/edit.c d = edit->redo_stack[spm1]; edit 2526 src/editor/edit.c edit->redo_stack[sp] = -2; edit 2531 src/editor/edit.c edit->redo_stack[sp] = c; edit 2534 src/editor/edit.c edit->redo_stack_pointer = (edit->redo_stack_pointer + 1) & edit->redo_stack_size_mask; edit 2539 src/editor/edit.c c = (edit->redo_stack_pointer + 2) & edit->redo_stack_size_mask; edit 2540 src/editor/edit.c if ((unsigned long) c == edit->redo_stack_bottom || edit 2541 src/editor/edit.c (((unsigned long) c + 1) & edit->redo_stack_size_mask) == edit->redo_stack_bottom) edit 2544 src/editor/edit.c edit->redo_stack_bottom = (edit->redo_stack_bottom + 1) & edit->redo_stack_size_mask; edit 2546 src/editor/edit.c while (edit->redo_stack[edit->redo_stack_bottom] < KEY_PRESS edit 2547 src/editor/edit.c && edit->redo_stack_bottom != edit->redo_stack_pointer); edit 2555 src/editor/edit.c if (edit->redo_stack_pointer != edit->redo_stack_bottom edit 2556 src/editor/edit.c && edit->redo_stack[edit->redo_stack_bottom] < KEY_PRESS) edit 2557 src/editor/edit.c edit->redo_stack_bottom = edit->redo_stack_pointer = 0; edit 2566 src/editor/edit.c edit_insert (WEdit *edit, int c) edit 2569 src/editor/edit.c if (edit->buffer.curs1 < edit->start_display) edit 2571 src/editor/edit.c edit->start_display++; edit 2573 src/editor/edit.c edit->start_line++; edit 2577 src/editor/edit.c if (edit->loading_done) edit 2578 src/editor/edit.c edit_modification (edit); edit 2583 src/editor/edit.c book_mark_inc (edit, edit->buffer.curs_line); edit 2584 src/editor/edit.c edit->buffer.curs_line++; edit 2585 src/editor/edit.c edit->buffer.lines++; edit 2586 src/editor/edit.c edit->force |= REDRAW_LINE_ABOVE | REDRAW_AFTER_CURSOR; edit 2592 src/editor/edit.c edit_push_undo_action (edit, BACKSPACE); edit 2594 src/editor/edit.c edit_push_undo_action (edit, BACKSPACE_BR); edit 2596 src/editor/edit.c edit->mark1 += (edit->mark1 > edit->buffer.curs1) ? 1 : 0; edit 2597 src/editor/edit.c edit->mark2 += (edit->mark2 > edit->buffer.curs1) ? 1 : 0; edit 2598 src/editor/edit.c edit->last_get_rule += (edit->last_get_rule > edit->buffer.curs1) ? 1 : 0; edit 2600 src/editor/edit.c edit_buffer_insert (&edit->buffer, c); edit 2607 src/editor/edit.c edit_insert_ahead (WEdit *edit, int c) edit 2609 src/editor/edit.c if (edit->buffer.curs1 < edit->start_display) edit 2611 src/editor/edit.c edit->start_display++; edit 2613 src/editor/edit.c edit->start_line++; edit 2615 src/editor/edit.c edit_modification (edit); edit 2618 src/editor/edit.c book_mark_inc (edit, edit->buffer.curs_line); edit 2619 src/editor/edit.c edit->buffer.lines++; edit 2620 src/editor/edit.c edit->force |= REDRAW_AFTER_CURSOR; edit 2624 src/editor/edit.c edit_push_undo_action (edit, DELCHAR); edit 2626 src/editor/edit.c edit_push_undo_action (edit, DELCHAR_BR); edit 2628 src/editor/edit.c edit->mark1 += (edit->mark1 >= edit->buffer.curs1) ? 1 : 0; edit 2629 src/editor/edit.c edit->mark2 += (edit->mark2 >= edit->buffer.curs1) ? 1 : 0; edit 2630 src/editor/edit.c edit->last_get_rule += (edit->last_get_rule >= edit->buffer.curs1) ? 1 : 0; edit 2632 src/editor/edit.c edit_buffer_insert_ahead (&edit->buffer, c); edit 2638 src/editor/edit.c edit_insert_over (WEdit *edit) edit 2642 src/editor/edit.c for (i = 0; i < edit->over_col; i++) edit 2643 src/editor/edit.c edit_insert (edit, ' '); edit 2645 src/editor/edit.c edit->over_col = 0; edit 2651 src/editor/edit.c edit_delete (WEdit *edit, gboolean byte_delete) edit 2657 src/editor/edit.c if (edit->buffer.curs2 == 0) edit 2662 src/editor/edit.c if (edit->utf8 && !byte_delete) edit 2664 src/editor/edit.c edit_buffer_get_utf (&edit->buffer, edit->buffer.curs1, &char_length); edit 2672 src/editor/edit.c if (edit->mark2 != edit->mark1) edit 2673 src/editor/edit.c edit_push_markers (edit); edit 2677 src/editor/edit.c if (edit->mark1 > edit->buffer.curs1) edit 2679 src/editor/edit.c edit->mark1--; edit 2680 src/editor/edit.c edit->end_mark_curs--; edit 2682 src/editor/edit.c if (edit->mark2 > edit->buffer.curs1) edit 2683 src/editor/edit.c edit->mark2--; edit 2684 src/editor/edit.c if (edit->last_get_rule > edit->buffer.curs1) edit 2685 src/editor/edit.c edit->last_get_rule--; edit 2687 src/editor/edit.c p = edit_buffer_delete (&edit->buffer); edit 2689 src/editor/edit.c edit_push_undo_action (edit, p + 256); edit 2692 src/editor/edit.c edit_modification (edit); edit 2695 src/editor/edit.c book_mark_dec (edit, edit->buffer.curs_line); edit 2696 src/editor/edit.c edit->buffer.lines--; edit 2697 src/editor/edit.c edit->force |= REDRAW_AFTER_CURSOR; edit 2699 src/editor/edit.c if (edit->buffer.curs1 < edit->start_display) edit 2701 src/editor/edit.c edit->start_display--; edit 2703 src/editor/edit.c edit->start_line--; edit 2712 src/editor/edit.c edit_backspace (WEdit *edit, gboolean byte_delete) edit 2718 src/editor/edit.c if (edit->buffer.curs1 == 0) edit 2721 src/editor/edit.c if (edit->mark2 != edit->mark1) edit 2722 src/editor/edit.c edit_push_markers (edit); edit 2725 src/editor/edit.c if (edit->utf8 && !byte_delete) edit 2727 src/editor/edit.c edit_buffer_get_prev_utf (&edit->buffer, edit->buffer.curs1, &char_length); edit 2737 src/editor/edit.c if (edit->mark1 >= edit->buffer.curs1) edit 2739 src/editor/edit.c edit->mark1--; edit 2740 src/editor/edit.c edit->end_mark_curs--; edit 2742 src/editor/edit.c if (edit->mark2 >= edit->buffer.curs1) edit 2743 src/editor/edit.c edit->mark2--; edit 2744 src/editor/edit.c if (edit->last_get_rule >= edit->buffer.curs1) edit 2745 src/editor/edit.c edit->last_get_rule--; edit 2747 src/editor/edit.c p = edit_buffer_backspace (&edit->buffer); edit 2749 src/editor/edit.c edit_push_undo_action (edit, p); edit 2751 src/editor/edit.c edit_modification (edit); edit 2754 src/editor/edit.c book_mark_dec (edit, edit->buffer.curs_line); edit 2755 src/editor/edit.c edit->buffer.curs_line--; edit 2756 src/editor/edit.c edit->buffer.lines--; edit 2757 src/editor/edit.c edit->force |= REDRAW_AFTER_CURSOR; edit 2760 src/editor/edit.c if (edit->buffer.curs1 < edit->start_display) edit 2762 src/editor/edit.c edit->start_display--; edit 2764 src/editor/edit.c edit->start_line--; edit 2774 src/editor/edit.c edit_cursor_move (WEdit *edit, off_t increment) edit 2778 src/editor/edit.c for (; increment < 0 && edit->buffer.curs1 != 0; increment++) edit 2782 src/editor/edit.c edit_push_undo_action (edit, CURS_RIGHT); edit 2784 src/editor/edit.c c = edit_buffer_get_previous_byte (&edit->buffer); edit 2785 src/editor/edit.c edit_buffer_insert_ahead (&edit->buffer, c); edit 2786 src/editor/edit.c c = edit_buffer_backspace (&edit->buffer); edit 2789 src/editor/edit.c edit->buffer.curs_line--; edit 2790 src/editor/edit.c edit->force |= REDRAW_LINE_BELOW; edit 2796 src/editor/edit.c for (; increment > 0 && edit->buffer.curs2 != 0; increment--) edit 2800 src/editor/edit.c edit_push_undo_action (edit, CURS_LEFT); edit 2802 src/editor/edit.c c = edit_buffer_get_current_byte (&edit->buffer); edit 2803 src/editor/edit.c edit_buffer_insert (&edit->buffer, c); edit 2804 src/editor/edit.c c = edit_buffer_delete (&edit->buffer); edit 2807 src/editor/edit.c edit->buffer.curs_line++; edit 2808 src/editor/edit.c edit->force |= REDRAW_LINE_ABOVE; edit 2819 src/editor/edit.c edit_move_forward3 (const WEdit *edit, off_t current, long cols, off_t upto) edit 2830 src/editor/edit.c q = edit->buffer.size + 2; edit 2844 src/editor/edit.c orig_c = c = edit_buffer_get_byte (&edit->buffer, p); edit 2847 src/editor/edit.c if (edit->utf8) edit 2852 src/editor/edit.c utf_ch = edit_buffer_get_utf (&edit->buffer, p, &char_length); edit 2873 src/editor/edit.c || (!mc_global.utf8_display && !edit->utf8) edit 2889 src/editor/edit.c edit_get_cursor_offset (const WEdit *edit) edit 2891 src/editor/edit.c return edit->buffer.curs1; edit 2898 src/editor/edit.c edit_get_col (const WEdit *edit) edit 2902 src/editor/edit.c b = edit_buffer_get_current_bol (&edit->buffer); edit 2903 src/editor/edit.c return (long) edit_move_forward3 (edit, b, 0, edit->buffer.curs1); edit 2911 src/editor/edit.c edit_update_curs_row (WEdit *edit) edit 2913 src/editor/edit.c edit->curs_row = edit->buffer.curs_line - edit->start_line; edit 2919 src/editor/edit.c edit_update_curs_col (WEdit *edit) edit 2923 src/editor/edit.c b = edit_buffer_get_current_bol (&edit->buffer); edit 2924 src/editor/edit.c edit->curs_col = (long) edit_move_forward3 (edit, b, 0, edit->buffer.curs1); edit 2930 src/editor/edit.c edit_get_curs_col (const WEdit *edit) edit 2932 src/editor/edit.c return edit->curs_col; edit 2939 src/editor/edit.c edit_scroll_upward (WEdit *edit, long i) edit 2941 src/editor/edit.c long lines_above = edit->start_line; edit 2947 src/editor/edit.c edit->start_line -= i; edit 2948 src/editor/edit.c edit->start_display = edit 2949 src/editor/edit.c edit_buffer_get_backward_offset (&edit->buffer, edit->start_display, i); edit 2950 src/editor/edit.c edit->force |= REDRAW_PAGE; edit 2951 src/editor/edit.c edit->force &= (0xfff - REDRAW_CHAR_ONLY); edit 2953 src/editor/edit.c edit_update_curs_row (edit); edit 2959 src/editor/edit.c edit_scroll_downward (WEdit *edit, long i) edit 2963 src/editor/edit.c lines_below = edit->buffer.lines - edit->start_line - (WIDGET (edit)->rect.lines - 1); edit 2968 src/editor/edit.c edit->start_line += i; edit 2969 src/editor/edit.c edit->start_display = edit 2970 src/editor/edit.c edit_buffer_get_forward_offset (&edit->buffer, edit->start_display, i, 0); edit 2971 src/editor/edit.c edit->force |= REDRAW_PAGE; edit 2972 src/editor/edit.c edit->force &= (0xfff - REDRAW_CHAR_ONLY); edit 2974 src/editor/edit.c edit_update_curs_row (edit); edit 2980 src/editor/edit.c edit_scroll_right (WEdit *edit, long i) edit 2982 src/editor/edit.c edit->force |= REDRAW_PAGE; edit 2983 src/editor/edit.c edit->force &= (0xfff - REDRAW_CHAR_ONLY); edit 2984 src/editor/edit.c edit->start_col -= i; edit 2990 src/editor/edit.c edit_scroll_left (WEdit *edit, long i) edit 2992 src/editor/edit.c if (edit->start_col) edit 2994 src/editor/edit.c edit->start_col += i; edit 2995 src/editor/edit.c if (edit->start_col > 0) edit 2996 src/editor/edit.c edit->start_col = 0; edit 2997 src/editor/edit.c edit->force |= REDRAW_PAGE; edit 2998 src/editor/edit.c edit->force &= (0xfff - REDRAW_CHAR_ONLY); edit 3007 src/editor/edit.c edit_move_to_prev_col (WEdit *edit, off_t p) edit 3009 src/editor/edit.c long prev = edit->prev_col; edit 3010 src/editor/edit.c long over = edit->over_col; edit 3013 src/editor/edit.c edit_cursor_move (edit, edit 3014 src/editor/edit.c edit_move_forward3 (edit, p, prev + edit->over_col, 0) - edit->buffer.curs1); edit 3021 src/editor/edit.c b = edit_buffer_get_current_bol (&edit->buffer); edit 3022 src/editor/edit.c e = edit_buffer_get_current_eol (&edit->buffer); edit 3023 src/editor/edit.c line_len = (long) edit_move_forward3 (edit, b, 0, e); edit 3024 src/editor/edit.c if (line_len < prev + edit->over_col) edit 3026 src/editor/edit.c edit->over_col = prev + over - line_len; edit 3027 src/editor/edit.c edit->prev_col = line_len; edit 3028 src/editor/edit.c edit->curs_col = line_len; edit 3032 src/editor/edit.c edit->curs_col = prev + over; edit 3033 src/editor/edit.c edit->prev_col = edit->curs_col; edit 3034 src/editor/edit.c edit->over_col = 0; edit 3039 src/editor/edit.c edit->over_col = 0; edit 3040 src/editor/edit.c if (edit_options.fake_half_tabs && is_in_indent (&edit->buffer)) edit 3044 src/editor/edit.c edit_update_curs_col (edit); edit 3047 src/editor/edit.c if (fake_half_tabs != 0 && edit->curs_col % fake_half_tabs != 0) edit 3051 src/editor/edit.c q = edit->curs_col; edit 3052 src/editor/edit.c edit->curs_col -= (edit->curs_col % fake_half_tabs); edit 3053 src/editor/edit.c p = edit_buffer_get_current_bol (&edit->buffer); edit 3054 src/editor/edit.c b = edit_move_forward3 (edit, p, edit->curs_col, 0); edit 3055 src/editor/edit.c edit_cursor_move (edit, b - edit->buffer.curs1); edit 3056 src/editor/edit.c if (!left_of_four_spaces (edit)) edit 3058 src/editor/edit.c b = edit_move_forward3 (edit, p, q, 0); edit 3059 src/editor/edit.c edit_cursor_move (edit, b - edit->buffer.curs1); edit 3076 src/editor/edit.c edit_line_is_blank (WEdit *edit, long line) edit 3078 src/editor/edit.c return is_blank (&edit->buffer, edit_find_line (edit, line)); edit 3110 src/editor/edit.c edit_push_markers (WEdit *edit) edit 3112 src/editor/edit.c edit_push_undo_action (edit, MARK_1 + edit->mark1); edit 3113 src/editor/edit.c edit_push_undo_action (edit, MARK_2 + edit->mark2); edit 3114 src/editor/edit.c edit_push_undo_action (edit, MARK_CURS + edit->end_mark_curs); edit 3120 src/editor/edit.c edit_set_markers (WEdit *edit, off_t m1, off_t m2, long c1, long c2) edit 3122 src/editor/edit.c edit->mark1 = m1; edit 3123 src/editor/edit.c edit->mark2 = m2; edit 3124 src/editor/edit.c edit->column1 = c1; edit 3125 src/editor/edit.c edit->column2 = c2; edit 3136 src/editor/edit.c eval_marks (WEdit *edit, off_t *start_mark, off_t *end_mark) edit 3140 src/editor/edit.c if (edit->mark1 == edit->mark2) edit 3143 src/editor/edit.c edit->column2 = edit->column1 = 0; edit 3147 src/editor/edit.c if (edit->end_mark_curs < 0) edit 3148 src/editor/edit.c end_mark_curs = edit->buffer.curs1; edit 3150 src/editor/edit.c end_mark_curs = edit->end_mark_curs; edit 3152 src/editor/edit.c if (edit->mark2 >= 0) edit 3154 src/editor/edit.c *start_mark = MIN (edit->mark1, edit->mark2); edit 3155 src/editor/edit.c *end_mark = MAX (edit->mark1, edit->mark2); edit 3159 src/editor/edit.c *start_mark = MIN (edit->mark1, end_mark_curs); edit 3160 src/editor/edit.c *end_mark = MAX (edit->mark1, end_mark_curs); edit 3161 src/editor/edit.c edit->column2 = edit->curs_col + edit->over_col; edit 3164 src/editor/edit.c if (edit->column_highlight edit 3165 src/editor/edit.c && ((edit->mark1 > end_mark_curs && edit->column1 < edit->column2) edit 3166 src/editor/edit.c || (edit->mark1 < end_mark_curs && edit->column1 > edit->column2))) edit 3173 src/editor/edit.c start_bol = edit_buffer_get_bol (&edit->buffer, *start_mark); edit 3174 src/editor/edit.c start_eol = edit_buffer_get_eol (&edit->buffer, start_bol - 1) + 1; edit 3175 src/editor/edit.c end_bol = edit_buffer_get_bol (&edit->buffer, *end_mark); edit 3176 src/editor/edit.c end_eol = edit_buffer_get_eol (&edit->buffer, *end_mark); edit 3177 src/editor/edit.c col1 = MIN (edit->column1, edit->column2); edit 3178 src/editor/edit.c col2 = MAX (edit->column1, edit->column2); edit 3180 src/editor/edit.c diff1 = edit_move_forward3 (edit, start_bol, col2, 0) - edit 3181 src/editor/edit.c edit_move_forward3 (edit, start_bol, col1, 0); edit 3182 src/editor/edit.c diff2 = edit_move_forward3 (edit, end_bol, col2, 0) - edit 3183 src/editor/edit.c edit_move_forward3 (edit, end_bol, col1, 0); edit 3198 src/editor/edit.c edit_mark_cmd (WEdit *edit, gboolean unmark) edit 3200 src/editor/edit.c edit_push_markers (edit); edit 3203 src/editor/edit.c edit_set_markers (edit, 0, 0, 0, 0); edit 3204 src/editor/edit.c edit->force |= REDRAW_PAGE; edit 3206 src/editor/edit.c else if (edit->mark2 >= 0) edit 3208 src/editor/edit.c edit->end_mark_curs = -1; edit 3209 src/editor/edit.c edit_set_markers (edit, edit->buffer.curs1, -1, edit->curs_col + edit->over_col, edit 3210 src/editor/edit.c edit->curs_col + edit->over_col); edit 3211 src/editor/edit.c edit->force |= REDRAW_PAGE; edit 3215 src/editor/edit.c edit->end_mark_curs = edit->buffer.curs1; edit 3216 src/editor/edit.c edit_set_markers (edit, edit->mark1, edit->buffer.curs1, edit->column1, edit 3217 src/editor/edit.c edit->curs_col + edit->over_col); edit 3225 src/editor/edit.c edit_mark_current_word_cmd (WEdit *edit) edit 3229 src/editor/edit.c for (pos = edit->buffer.curs1; pos != 0; pos--) edit 3233 src/editor/edit.c c1 = edit_buffer_get_byte (&edit->buffer, pos); edit 3234 src/editor/edit.c c2 = edit_buffer_get_byte (&edit->buffer, pos - 1); edit 3240 src/editor/edit.c edit->mark1 = pos; edit 3242 src/editor/edit.c for (; pos < edit->buffer.size; pos++) edit 3246 src/editor/edit.c c1 = edit_buffer_get_byte (&edit->buffer, pos); edit 3247 src/editor/edit.c c2 = edit_buffer_get_byte (&edit->buffer, pos + 1); edit 3253 src/editor/edit.c edit->mark2 = MIN (pos + 1, edit->buffer.size); edit 3255 src/editor/edit.c edit->force |= REDRAW_LINE_ABOVE | REDRAW_AFTER_CURSOR; edit 3261 src/editor/edit.c edit_mark_current_line_cmd (WEdit *edit) edit 3263 src/editor/edit.c edit->mark1 = edit_buffer_get_current_bol (&edit->buffer); edit 3264 src/editor/edit.c edit->mark2 = edit_buffer_get_current_eol (&edit->buffer); edit 3266 src/editor/edit.c edit->force |= REDRAW_LINE_ABOVE | REDRAW_AFTER_CURSOR; edit 3272 src/editor/edit.c edit_delete_line (WEdit *edit) edit 3279 src/editor/edit.c while (edit_buffer_get_current_byte (&edit->buffer) != '\n') edit 3280 src/editor/edit.c (void) edit_delete (edit, TRUE); edit 3287 src/editor/edit.c (void) edit_delete (edit, TRUE); edit 3293 src/editor/edit.c while (edit_buffer_get_previous_byte (&edit->buffer) != '\n') edit 3294 src/editor/edit.c (void) edit_backspace (edit, TRUE); edit 3300 src/editor/edit.c edit_push_key_press (WEdit *edit) edit 3302 src/editor/edit.c edit_push_undo_action (edit, KEY_PRESS + edit->start_display); edit 3303 src/editor/edit.c if (edit->mark2 == -1) edit 3305 src/editor/edit.c edit_push_undo_action (edit, MARK_1 + edit->mark1); edit 3306 src/editor/edit.c edit_push_undo_action (edit, MARK_CURS + edit->end_mark_curs); edit 3313 src/editor/edit.c edit_find_bracket (WEdit *edit) edit 3315 src/editor/edit.c edit->bracket = edit_get_bracket (edit, 1, 10000); edit 3316 src/editor/edit.c if (edit->last_bracket != edit->bracket) edit 3317 src/editor/edit.c edit->force |= REDRAW_PAGE; edit 3318 src/editor/edit.c edit->last_bracket = edit->bracket; edit 3333 src/editor/edit.c edit_execute_key_command (WEdit *edit, long command, int char_for_insertion) edit 3340 src/editor/edit.c edit->force |= REDRAW_CHAR_ONLY | REDRAW_LINE; edit 3345 src/editor/edit.c edit->force |= REDRAW_COMPLETELY; edit 3348 src/editor/edit.c edit_store_macro_cmd (edit); edit 3354 src/editor/edit.c edit_repeat_macro_cmd (edit); edit 3367 src/editor/edit.c edit_push_key_press (edit); edit 3369 src/editor/edit.c edit_execute_cmd (edit, command, char_for_insertion); edit 3370 src/editor/edit.c if (edit->column_highlight) edit 3371 src/editor/edit.c edit->force |= REDRAW_PAGE; edit 3382 src/editor/edit.c edit_execute_cmd (WEdit *edit, long command, int char_for_insertion) edit 3384 src/editor/edit.c WRect *w = &WIDGET (edit)->rect; edit 3388 src/editor/edit.c edit_toggle_fullscreen (edit); edit 3393 src/editor/edit.c if (edit_handle_move_resize (edit, command)) edit 3396 src/editor/edit.c edit->force |= REDRAW_LINE; edit 3400 src/editor/edit.c if (edit->found_len || edit->column_highlight) edit 3401 src/editor/edit.c edit->force |= REDRAW_PAGE; edit 3435 src/editor/edit.c edit->column_highlight = 0; edit 3436 src/editor/edit.c if (edit->highlight == 0 || (edit->mark2 != -1 && edit->mark1 != edit->mark2)) edit 3438 src/editor/edit.c edit_mark_cmd (edit, TRUE); /* clear */ edit 3439 src/editor/edit.c edit_mark_cmd (edit, FALSE); /* marking on */ edit 3441 src/editor/edit.c edit->highlight = 1; edit 3446 src/editor/edit.c if (edit->highlight) edit 3447 src/editor/edit.c edit_mark_cmd (edit, FALSE); /* clear */ edit 3448 src/editor/edit.c edit->highlight = 0; edit 3454 src/editor/edit.c edit->redo_stack_reset = 0; edit 3455 src/editor/edit.c edit_group_undo (edit); edit 3456 src/editor/edit.c edit->found_len = 0; edit 3457 src/editor/edit.c edit->prev_col = edit_get_col (edit); edit 3458 src/editor/edit.c edit->search_start = edit->buffer.curs1; edit 3464 src/editor/edit.c edit->redo_stack_reset = 0; edit 3465 src/editor/edit.c edit_do_redo (edit); edit 3466 src/editor/edit.c edit->found_len = 0; edit 3467 src/editor/edit.c edit->prev_col = edit_get_col (edit); edit 3468 src/editor/edit.c edit->search_start = edit->buffer.curs1; edit 3472 src/editor/edit.c edit->redo_stack_reset = 1; edit 3478 src/editor/edit.c if (!edit_options.persistent_selections && edit->mark1 != edit->mark2) edit 3479 src/editor/edit.c edit_block_delete_cmd (edit); edit 3481 src/editor/edit.c if (edit->overwrite) edit 3485 src/editor/edit.c if (!mc_global.utf8_display || edit->charpoint == 0) edit 3487 src/editor/edit.c if (edit_buffer_get_current_byte (&edit->buffer) != '\n') edit 3488 src/editor/edit.c edit_delete (edit, FALSE); edit 3490 src/editor/edit.c if (edit_options.cursor_beyond_eol && edit->over_col > 0) edit 3491 src/editor/edit.c edit_insert_over (edit); edit 3516 src/editor/edit.c edit_insert (edit, char_for_insertion); edit 3521 src/editor/edit.c edit_insert (edit, char_for_insertion); edit 3525 src/editor/edit.c format_paragraph (edit, FALSE); edit 3526 src/editor/edit.c edit->force |= REDRAW_PAGE; edit 3529 src/editor/edit.c check_and_wrap_line (edit); edit 3530 src/editor/edit.c edit->found_len = 0; edit 3531 src/editor/edit.c edit->prev_col = edit_get_col (edit); edit 3532 src/editor/edit.c edit->search_start = edit->buffer.curs1; edit 3533 src/editor/edit.c edit_find_bracket (edit); edit 3553 src/editor/edit.c if (!edit_options.persistent_selections && edit->mark2 >= 0) edit 3555 src/editor/edit.c if (edit->column_highlight) edit 3556 src/editor/edit.c edit_push_undo_action (edit, COLUMN_ON); edit 3557 src/editor/edit.c edit->column_highlight = 0; edit 3558 src/editor/edit.c edit_mark_cmd (edit, TRUE); edit 3581 src/editor/edit.c if (edit->mark2 == -1) edit 3588 src/editor/edit.c edit->force |= REDRAW_CHAR_ONLY; edit 3599 src/editor/edit.c if (!edit_options.persistent_selections && edit->mark1 != edit->mark2) edit 3600 src/editor/edit.c edit_block_delete_cmd (edit); edit 3601 src/editor/edit.c else if (edit_options.cursor_beyond_eol && edit->over_col > 0) edit 3602 src/editor/edit.c edit->over_col--; edit 3603 src/editor/edit.c else if (edit_options.backspace_through_tabs && is_in_indent (&edit->buffer)) edit 3605 src/editor/edit.c while (edit_buffer_get_previous_byte (&edit->buffer) != '\n' && edit->buffer.curs1 > 0) edit 3606 src/editor/edit.c edit_backspace (edit, TRUE); edit 3608 src/editor/edit.c else if (edit_options.fake_half_tabs && is_in_indent (&edit->buffer) edit 3609 src/editor/edit.c && right_of_four_spaces (edit)) edit 3614 src/editor/edit.c edit_backspace (edit, TRUE); edit 3617 src/editor/edit.c edit_backspace (edit, FALSE); edit 3621 src/editor/edit.c if (!edit_options.persistent_selections && edit->mark1 != edit->mark2) edit 3622 src/editor/edit.c edit_block_delete_cmd (edit); edit 3625 src/editor/edit.c if (edit_options.cursor_beyond_eol && edit->over_col > 0) edit 3626 src/editor/edit.c edit_insert_over (edit); edit 3628 src/editor/edit.c if (edit_options.fake_half_tabs && is_in_indent (&edit->buffer) edit 3629 src/editor/edit.c && left_of_four_spaces (edit)) edit 3634 src/editor/edit.c edit_delete (edit, TRUE); edit 3637 src/editor/edit.c edit_delete (edit, FALSE); edit 3641 src/editor/edit.c edit->over_col = 0; edit 3642 src/editor/edit.c edit_left_delete_word (edit); edit 3645 src/editor/edit.c if (edit_options.cursor_beyond_eol && edit->over_col > 0) edit 3646 src/editor/edit.c edit_insert_over (edit); edit 3648 src/editor/edit.c edit_right_delete_word (edit); edit 3651 src/editor/edit.c edit_delete_line (edit); edit 3654 src/editor/edit.c edit_delete_to_line_begin (edit); edit 3657 src/editor/edit.c edit_delete_to_line_end (edit); edit 3660 src/editor/edit.c edit->over_col = 0; edit 3663 src/editor/edit.c edit_double_newline (edit); edit 3665 src/editor/edit.c edit_auto_indent (edit); edit 3666 src/editor/edit.c format_paragraph (edit, FALSE); edit 3670 src/editor/edit.c edit_insert (edit, '\n'); edit 3672 src/editor/edit.c edit_auto_indent (edit); edit 3676 src/editor/edit.c edit_insert (edit, '\n'); edit 3680 src/editor/edit.c edit->column_highlight = 1; edit 3684 src/editor/edit.c edit_move_up (edit, w->lines - 1, TRUE); edit 3687 src/editor/edit.c edit->column_highlight = 1; edit 3691 src/editor/edit.c edit_move_down (edit, w->lines - 1, TRUE); edit 3694 src/editor/edit.c edit->column_highlight = 1; edit 3698 src/editor/edit.c if (edit_options.fake_half_tabs && is_in_indent (&edit->buffer) edit 3699 src/editor/edit.c && right_of_four_spaces (edit)) edit 3701 src/editor/edit.c if (edit_options.cursor_beyond_eol && edit->over_col > 0) edit 3702 src/editor/edit.c edit->over_col--; edit 3704 src/editor/edit.c edit_cursor_move (edit, -HALF_TAB_SIZE); edit 3705 src/editor/edit.c edit->force &= (0xFFF - REDRAW_CHAR_ONLY); edit 3708 src/editor/edit.c edit_left_char_move_cmd (edit); edit 3711 src/editor/edit.c edit->column_highlight = 1; edit 3715 src/editor/edit.c if (edit_options.fake_half_tabs && is_in_indent (&edit->buffer) edit 3716 src/editor/edit.c && left_of_four_spaces (edit)) edit 3718 src/editor/edit.c edit_cursor_move (edit, HALF_TAB_SIZE); edit 3719 src/editor/edit.c edit->force &= (0xFFF - REDRAW_CHAR_ONLY); edit 3722 src/editor/edit.c edit_right_char_move_cmd (edit); edit 3726 src/editor/edit.c edit_begin_page (edit); edit 3730 src/editor/edit.c edit_end_page (edit); edit 3734 src/editor/edit.c edit->over_col = 0; edit 3735 src/editor/edit.c edit_left_word_move_cmd (edit); edit 3739 src/editor/edit.c edit->over_col = 0; edit 3740 src/editor/edit.c edit_right_word_move_cmd (edit); edit 3743 src/editor/edit.c edit->column_highlight = 1; edit 3747 src/editor/edit.c edit_move_up (edit, 1, FALSE); edit 3750 src/editor/edit.c edit->column_highlight = 1; edit 3754 src/editor/edit.c edit_move_down (edit, 1, FALSE); edit 3757 src/editor/edit.c edit->column_highlight = 1; edit 3761 src/editor/edit.c edit_move_up_paragraph (edit, FALSE); edit 3764 src/editor/edit.c edit->column_highlight = 1; edit 3768 src/editor/edit.c edit_move_down_paragraph (edit, FALSE); edit 3771 src/editor/edit.c edit->column_highlight = 1; edit 3775 src/editor/edit.c edit_move_up (edit, 1, TRUE); edit 3778 src/editor/edit.c edit->column_highlight = 1; edit 3782 src/editor/edit.c edit_move_down (edit, 1, TRUE); edit 3786 src/editor/edit.c edit_cursor_to_bol (edit); edit 3790 src/editor/edit.c edit_cursor_to_eol (edit); edit 3794 src/editor/edit.c if (edit->mark1 != edit->mark2 && !edit_options.persistent_selections) edit 3796 src/editor/edit.c if (edit->mark2 < 0) edit 3797 src/editor/edit.c edit_mark_cmd (edit, FALSE); edit 3798 src/editor/edit.c edit_move_block_to_right (edit); edit 3803 src/editor/edit.c edit_insert_over (edit); edit 3804 src/editor/edit.c edit_tab_cmd (edit); edit 3807 src/editor/edit.c format_paragraph (edit, FALSE); edit 3808 src/editor/edit.c edit->force |= REDRAW_PAGE; edit 3811 src/editor/edit.c check_and_wrap_line (edit); edit 3816 src/editor/edit.c edit->overwrite = !edit->overwrite; edit 3820 src/editor/edit.c if (edit->mark2 >= 0) edit 3822 src/editor/edit.c if (edit->column_highlight) edit 3823 src/editor/edit.c edit_push_undo_action (edit, COLUMN_ON); edit 3824 src/editor/edit.c edit->column_highlight = 0; edit 3826 src/editor/edit.c edit_mark_cmd (edit, FALSE); edit 3829 src/editor/edit.c if (!edit->column_highlight) edit 3830 src/editor/edit.c edit_push_undo_action (edit, COLUMN_OFF); edit 3831 src/editor/edit.c edit->column_highlight = 1; edit 3832 src/editor/edit.c edit_mark_cmd (edit, FALSE); edit 3835 src/editor/edit.c edit_set_markers (edit, 0, edit->buffer.size, 0, 0); edit 3836 src/editor/edit.c edit->force |= REDRAW_PAGE; edit 3839 src/editor/edit.c if (edit->column_highlight) edit 3840 src/editor/edit.c edit_push_undo_action (edit, COLUMN_ON); edit 3841 src/editor/edit.c edit->column_highlight = 0; edit 3842 src/editor/edit.c edit_mark_cmd (edit, TRUE); edit 3845 src/editor/edit.c if (edit->column_highlight) edit 3846 src/editor/edit.c edit_push_undo_action (edit, COLUMN_ON); edit 3847 src/editor/edit.c edit->column_highlight = 0; edit 3848 src/editor/edit.c edit_mark_current_word_cmd (edit); edit 3851 src/editor/edit.c if (edit->column_highlight) edit 3852 src/editor/edit.c edit_push_undo_action (edit, COLUMN_ON); edit 3853 src/editor/edit.c edit->column_highlight = 0; edit 3854 src/editor/edit.c edit_mark_current_line_cmd (edit); edit 3858 src/editor/edit.c book_mark_clear (edit, edit->buffer.curs_line, BOOK_MARK_FOUND_COLOR); edit 3859 src/editor/edit.c if (book_mark_query_color (edit, edit->buffer.curs_line, BOOK_MARK_COLOR)) edit 3860 src/editor/edit.c book_mark_clear (edit, edit->buffer.curs_line, BOOK_MARK_COLOR); edit 3862 src/editor/edit.c book_mark_insert (edit, edit->buffer.curs_line, BOOK_MARK_COLOR); edit 3865 src/editor/edit.c book_mark_flush (edit, BOOK_MARK_COLOR); edit 3866 src/editor/edit.c book_mark_flush (edit, BOOK_MARK_FOUND_COLOR); edit 3867 src/editor/edit.c edit->force |= REDRAW_PAGE; edit 3870 src/editor/edit.c if (edit->book_mark != NULL) edit 3874 src/editor/edit.c p = book_mark_find (edit, edit->buffer.curs_line); edit 3878 src/editor/edit.c if (p->line >= edit->start_line + w->lines || p->line < edit->start_line) edit 3879 src/editor/edit.c edit_move_display (edit, p->line - w->lines / 2); edit 3880 src/editor/edit.c edit_move_to_line (edit, p->line); edit 3885 src/editor/edit.c if (edit->book_mark != NULL) edit 3889 src/editor/edit.c p = book_mark_find (edit, edit->buffer.curs_line); edit 3890 src/editor/edit.c while (p->line == edit->buffer.curs_line) edit 3895 src/editor/edit.c if (p->line >= edit->start_line + w->lines || p->line < edit->start_line) edit 3896 src/editor/edit.c edit_move_display (edit, p->line - w->lines / 2); edit 3897 src/editor/edit.c edit_move_to_line (edit, p->line); edit 3904 src/editor/edit.c edit_move_to_top (edit); edit 3908 src/editor/edit.c edit_move_to_bottom (edit); edit 3912 src/editor/edit.c if (edit_options.cursor_beyond_eol && edit->over_col > 0) edit 3913 src/editor/edit.c edit_insert_over (edit); edit 3914 src/editor/edit.c edit_block_copy_cmd (edit); edit 3917 src/editor/edit.c edit_block_delete_cmd (edit); edit 3920 src/editor/edit.c edit_block_move_cmd (edit); edit 3924 src/editor/edit.c if (edit->mark1 != edit->mark2) edit 3925 src/editor/edit.c edit_move_block_to_left (edit); edit 3928 src/editor/edit.c if (edit->mark1 != edit->mark2) edit 3929 src/editor/edit.c edit_move_block_to_right (edit); edit 3932 src/editor/edit.c edit_copy_to_X_buf_cmd (edit); edit 3935 src/editor/edit.c edit_cut_to_X_buf_cmd (edit); edit 3939 src/editor/edit.c if (!edit_options.persistent_selections && edit->mark1 != edit->mark2) edit 3940 src/editor/edit.c edit_block_delete_cmd (edit); edit 3941 src/editor/edit.c if (edit_options.cursor_beyond_eol && edit->over_col > 0) edit 3942 src/editor/edit.c edit_insert_over (edit); edit 3943 src/editor/edit.c edit_paste_from_X_buf_cmd (edit); edit 3944 src/editor/edit.c if (!edit_options.persistent_selections && edit->mark2 >= 0) edit 3946 src/editor/edit.c if (edit->column_highlight) edit 3947 src/editor/edit.c edit_push_undo_action (edit, COLUMN_ON); edit 3948 src/editor/edit.c edit->column_highlight = 0; edit 3949 src/editor/edit.c edit_mark_cmd (edit, TRUE); edit 3953 src/editor/edit.c edit_paste_from_history (edit); edit 3957 src/editor/edit.c edit_save_as_cmd (edit); edit 3960 src/editor/edit.c edit_save_confirm_cmd (edit); edit 3963 src/editor/edit.c edit_save_block_cmd (edit); edit 3966 src/editor/edit.c edit_insert_file_cmd (edit); edit 3970 src/editor/edit.c edit_load_back_cmd (edit); edit 3973 src/editor/edit.c edit_load_forward_cmd (edit); edit 3977 src/editor/edit.c edit_syntax_dialog (edit); edit 3981 src/editor/edit.c edit_search_cmd (edit, FALSE); edit 3984 src/editor/edit.c edit_search_cmd (edit, TRUE); edit 3987 src/editor/edit.c edit_replace_cmd (edit, FALSE); edit 3990 src/editor/edit.c edit_replace_cmd (edit, TRUE); edit 3994 src/editor/edit.c if (edit->mark1 != edit->mark2 && !edit_options.persistent_selections) edit 3995 src/editor/edit.c edit_move_block_to_left (edit); edit 3997 src/editor/edit.c edit_complete_word_cmd (edit); edit 4000 src/editor/edit.c edit_get_match_keyword_cmd (edit); edit 4005 src/editor/edit.c edit_suggest_current_word (edit); edit 4008 src/editor/edit.c edit_spellcheck_file (edit); edit 4023 src/editor/edit.c edit_print_string (edit, s); edit 4024 src/editor/edit.c edit->force |= REDRAW_PAGE; edit 4028 src/editor/edit.c edit_goto_cmd (edit); edit 4031 src/editor/edit.c format_paragraph (edit, TRUE); edit 4032 src/editor/edit.c edit->force |= REDRAW_PAGE; edit 4035 src/editor/edit.c edit_delete_macro_cmd (edit); edit 4038 src/editor/edit.c edit_goto_matching_bracket (edit); edit 4041 src/editor/edit.c edit_user_menu (edit, NULL, -1); edit 4044 src/editor/edit.c edit_sort_cmd (edit); edit 4047 src/editor/edit.c edit_ext_cmd (edit); edit 4050 src/editor/edit.c edit_mail_dialog (edit); edit 4054 src/editor/edit.c edit_select_codepage_cmd (edit); edit 4058 src/editor/edit.c edit_insert_literal_cmd (edit); edit 4061 src/editor/edit.c edit_begin_end_macro_cmd (edit); edit 4064 src/editor/edit.c edit_begin_end_repeat_cmd (edit); edit 4067 src/editor/edit.c WIDGET (edit)->ext_mode = TRUE; edit 4075 src/editor/edit.c edit_block_process_cmd (edit, command - CK_PipeBlock (0)); edit 4085 src/editor/edit.c edit->prev_col = edit_get_col (edit); edit 4115 src/editor/edit.c edit->search_start = edit->buffer.curs1; edit 4116 src/editor/edit.c edit->found_len = 0; edit 4119 src/editor/edit.c edit->found_len = 0; edit 4120 src/editor/edit.c edit->prev_col = edit_get_col (edit); edit 4121 src/editor/edit.c edit->search_start = edit->buffer.curs1; edit 4123 src/editor/edit.c edit_find_bracket (edit); edit 4135 src/editor/edit.c format_paragraph (edit, FALSE); edit 4136 src/editor/edit.c edit->force |= REDRAW_PAGE; edit 4168 src/editor/edit.c edit_move_up (WEdit *edit, long i, gboolean do_scroll) edit 4170 src/editor/edit.c edit_move_updown (edit, i, do_scroll, TRUE); edit 4177 src/editor/edit.c edit_move_down (WEdit *edit, long i, gboolean do_scroll) edit 4179 src/editor/edit.c edit_move_updown (edit, i, do_scroll, FALSE); edit 4267 src/editor/edit.c edit_get_file_name (const WEdit *edit) edit 4269 src/editor/edit.c return vfs_path_as_str (edit->filename_vpath); edit 90 src/editor/edit.h const char *edit_get_file_name (const WEdit * edit); edit 91 src/editor/edit.h off_t edit_get_cursor_offset (const WEdit * edit); edit 92 src/editor/edit.h long edit_get_curs_col (const WEdit * edit); edit 93 src/editor/edit.h const char *edit_get_syntax_type (const WEdit * edit); edit 130 src/editor/editcmd.c edit_save_file (WEdit *edit, const vfs_path_t *filename_vpath) edit 150 src/editor/editcmd.c if (!IS_PATH_SEP (*start_filename) && edit->dir_vpath != NULL) edit 151 src/editor/editcmd.c real_filename_vpath = vfs_path_append_vpath_new (edit->dir_vpath, filename_vpath, NULL); edit 176 src/editor/editcmd.c if (this_save_mode == EDIT_QUICK_SAVE && !edit->skip_detach_prompt && sb.st_nlink > 1) edit 187 src/editor/editcmd.c edit->skip_detach_prompt = 1; edit 196 src/editor/editcmd.c if (edit->stat1.st_mtime != 0 && edit->stat1.st_mtime != sb.st_mtime) edit 240 src/editor/editcmd.c (void) mc_chown (savename_vpath, edit->stat1.st_uid, edit->stat1.st_gid); edit 241 src/editor/editcmd.c (void) mc_chmod (savename_vpath, edit->stat1.st_mode); edit 242 src/editor/editcmd.c if (edit->attrs_ok) edit 243 src/editor/editcmd.c (void) mc_fsetflags (savename_vpath, edit->attrs); edit 245 src/editor/editcmd.c fd = mc_open (savename_vpath, O_CREAT | O_WRONLY | O_TRUNC | O_BINARY, edit->stat1.st_mode); edit 260 src/editor/editcmd.c filelen = edit_write_stream (edit, file); edit 284 src/editor/editcmd.c else if (edit->lb == LB_ASIS) edit 286 src/editor/editcmd.c filelen = edit_buffer_write_file (&edit->buffer, fd); edit 288 src/editor/editcmd.c if (filelen != edit->buffer.size) edit 298 src/editor/editcmd.c if (mc_stat (savename_vpath, &edit->stat1) == -1) edit 312 src/editor/editcmd.c filelen = edit_write_stream (edit, file); edit 326 src/editor/editcmd.c if (filelen != edit->buffer.size) edit 383 src/editor/editcmd.c edit_get_save_file_as (WEdit *edit) edit 399 src/editor/editcmd.c vfs_path_as_str (edit->filename_vpath), "save-as", edit 420 src/editor/editcmd.c edit->lb = cur_lb; edit 435 src/editor/editcmd.c edit_save_cmd (WEdit *edit) edit 439 src/editor/editcmd.c if (!edit->locked && !edit->delete_file) edit 440 src/editor/editcmd.c save_lock = lock_file (edit->filename_vpath); edit 441 src/editor/editcmd.c res = edit_save_file (edit, edit->filename_vpath); edit 444 src/editor/editcmd.c if ((res > 0 && edit->locked) || save_lock) edit 445 src/editor/editcmd.c edit->locked = unlock_file (edit->filename_vpath); edit 449 src/editor/editcmd.c return edit_save_as_cmd (edit); edit 453 src/editor/editcmd.c edit->delete_file = 0; edit 454 src/editor/editcmd.c edit->modified = 0; edit 457 src/editor/editcmd.c edit->force |= REDRAW_COMPLETELY; edit 465 src/editor/editcmd.c edit_delete_column_of_text (WEdit *edit, off_t m1, off_t m2) edit 471 src/editor/editcmd.c n = edit_buffer_get_forward_offset (&edit->buffer, m1, 0, m2) + 1; edit 472 src/editor/editcmd.c r = edit_buffer_get_bol (&edit->buffer, m1); edit 473 src/editor/editcmd.c c = (long) edit_move_forward3 (edit, r, 0, m1); edit 474 src/editor/editcmd.c r = edit_buffer_get_bol (&edit->buffer, m2); edit 475 src/editor/editcmd.c d = (long) edit_move_forward3 (edit, r, 0, m2); edit 476 src/editor/editcmd.c b = MAX (MIN (c, d), MIN (edit->column1, edit->column2)); edit 477 src/editor/editcmd.c c = MAX (c, MAX (edit->column1, edit->column2)); edit 483 src/editor/editcmd.c r = edit_buffer_get_current_bol (&edit->buffer); edit 484 src/editor/editcmd.c p = edit_move_forward3 (edit, r, b, 0); edit 485 src/editor/editcmd.c q = edit_move_forward3 (edit, r, c, 0); edit 488 src/editor/editcmd.c edit_cursor_move (edit, p - edit->buffer.curs1); edit 491 src/editor/editcmd.c if (edit_buffer_get_current_byte (&edit->buffer) != '\n') edit 492 src/editor/editcmd.c edit_delete (edit, TRUE); edit 497 src/editor/editcmd.c r = edit_buffer_get_forward_offset (&edit->buffer, edit->buffer.curs1, 1, 0); edit 498 src/editor/editcmd.c edit_cursor_move (edit, r - edit->buffer.curs1); edit 507 src/editor/editcmd.c edit_block_delete (WEdit *edit, off_t start_mark, off_t end_mark) edit 512 src/editor/editcmd.c if (edit->column_highlight && edit->mark2 < 0) edit 513 src/editor/editcmd.c edit_mark_cmd (edit, FALSE); edit 522 src/editor/editcmd.c c1 = MIN (edit->column1, edit->column2); edit 523 src/editor/editcmd.c c2 = MAX (edit->column1, edit->column2); edit 524 src/editor/editcmd.c edit->column1 = c1; edit 525 src/editor/editcmd.c edit->column2 = c2; edit 527 src/editor/editcmd.c edit_push_markers (edit); edit 529 src/editor/editcmd.c curs_line = edit->buffer.curs_line; edit 531 src/editor/editcmd.c curs_pos = edit->curs_col + edit->over_col; edit 534 src/editor/editcmd.c edit_cursor_move (edit, start_mark - edit->buffer.curs1); edit 535 src/editor/editcmd.c edit_scroll_screen_over_cursor (edit); edit 539 src/editor/editcmd.c if (edit->column_highlight) edit 544 src/editor/editcmd.c if (edit->mark2 < 0) edit 545 src/editor/editcmd.c edit_mark_cmd (edit, FALSE); edit 546 src/editor/editcmd.c edit_delete_column_of_text (edit, start_mark, end_mark); edit 548 src/editor/editcmd.c edit_move_to_line (edit, curs_line); edit 550 src/editor/editcmd.c b = edit_buffer_get_current_bol (&edit->buffer); edit 551 src/editor/editcmd.c e = edit_buffer_get_current_eol (&edit->buffer); edit 552 src/editor/editcmd.c line_width = edit_move_forward3 (edit, b, 0, e); edit 554 src/editor/editcmd.c edit->over_col = curs_pos - line_width; edit 561 src/editor/editcmd.c edit_delete (edit, TRUE); edit 565 src/editor/editcmd.c edit_set_markers (edit, 0, 0, 0, 0); edit 566 src/editor/editcmd.c edit->force |= REDRAW_PAGE; edit 575 src/editor/editcmd.c edit_get_block (WEdit *edit, off_t start, off_t finish, off_t *l) edit 581 src/editor/editcmd.c if (edit->column_highlight) edit 591 src/editor/editcmd.c x = edit_buffer_get_bol (&edit->buffer, start); edit 592 src/editor/editcmd.c x = edit_move_forward3 (edit, x, 0, start); edit 593 src/editor/editcmd.c c = edit_buffer_get_byte (&edit->buffer, start); edit 594 src/editor/editcmd.c if ((x >= edit->column1 && x < edit->column2) edit 595 src/editor/editcmd.c || (x >= edit->column2 && x < edit->column1) || c == '\n') edit 607 src/editor/editcmd.c *s++ = edit_buffer_get_byte (&edit->buffer, start); edit 619 src/editor/editcmd.c edit_save_block_to_clip_file (WEdit *edit, off_t start, off_t finish) edit 625 src/editor/editcmd.c ret = edit_save_block (edit, tmp, start, finish); edit 680 src/editor/editcmd.c edit_insert_column_of_text (WEdit *edit, unsigned char *data, off_t size, long width, edit 686 src/editor/editcmd.c cursor = edit->buffer.curs1; edit 687 src/editor/editcmd.c col = edit_get_col (edit); edit 692 src/editor/editcmd.c edit_insert (edit, data[i]); edit 698 src/editor/editcmd.c if (edit_buffer_get_current_byte (&edit->buffer) != '\n') edit 700 src/editor/editcmd.c for (l = width - (edit_get_col (edit) - col); l > 0; l -= space_width) edit 701 src/editor/editcmd.c edit_insert (edit, ' '); edit 703 src/editor/editcmd.c for (p = edit->buffer.curs1;; p++) edit 705 src/editor/editcmd.c if (p == edit->buffer.size) edit 707 src/editor/editcmd.c edit_cursor_move (edit, edit->buffer.size - edit->buffer.curs1); edit 708 src/editor/editcmd.c edit_insert_ahead (edit, '\n'); edit 712 src/editor/editcmd.c if (edit_buffer_get_byte (&edit->buffer, p) == '\n') edit 718 src/editor/editcmd.c edit_cursor_move (edit, edit_move_forward3 (edit, p, col, 0) - edit->buffer.curs1); edit 720 src/editor/editcmd.c for (l = col - edit_get_col (edit); l >= space_width; l -= space_width) edit 721 src/editor/editcmd.c edit_insert (edit, ' '); edit 728 src/editor/editcmd.c *end_pos = edit->buffer.curs1; edit 729 src/editor/editcmd.c edit_cursor_move (edit, cursor - edit->buffer.curs1); edit 748 src/editor/editcmd.c WEdit *edit = EDIT (data); edit 751 src/editor/editcmd.c edit_load_syntax (edit, NULL, edit->syntax_type); edit 752 src/editor/editcmd.c edit->force |= REDRAW_PAGE; edit 897 src/editor/editcmd.c edit_set_filename (WEdit *edit, const vfs_path_t *name_vpath) edit 899 src/editor/editcmd.c vfs_path_free (edit->filename_vpath, TRUE); edit 900 src/editor/editcmd.c edit->filename_vpath = vfs_path_clone (name_vpath); edit 902 src/editor/editcmd.c if (edit->dir_vpath == NULL) edit 903 src/editor/editcmd.c edit->dir_vpath = vfs_path_clone (vfs_get_raw_current_dir ()); edit 911 src/editor/editcmd.c edit_save_as_cmd (WEdit *edit) edit 919 src/editor/editcmd.c if (!edit_check_newline (&edit->buffer)) edit 922 src/editor/editcmd.c exp_vpath = edit_get_save_file_as (edit); edit 923 src/editor/editcmd.c edit_push_undo_action (edit, KEY_PRESS + edit->start_display); edit 929 src/editor/editcmd.c if (!vfs_path_equal (edit->filename_vpath, exp_vpath)) edit 946 src/editor/editcmd.c edit->stat1.st_mode |= S_IWUSR; edit 960 src/editor/editcmd.c else if (!edit->locked && !edit->delete_file) edit 967 src/editor/editcmd.c edit->stat1.st_mode |= S_IWUSR; edit 969 src/editor/editcmd.c rv = edit_save_file (edit, exp_vpath); edit 978 src/editor/editcmd.c if (edit->locked) edit 979 src/editor/editcmd.c edit->locked = unlock_file (edit->filename_vpath); edit 981 src/editor/editcmd.c else if (edit->locked || save_lock) edit 982 src/editor/editcmd.c edit->locked = unlock_file (edit->filename_vpath); edit 984 src/editor/editcmd.c edit_set_filename (edit, exp_vpath); edit 985 src/editor/editcmd.c if (edit->lb != LB_ASIS) edit 986 src/editor/editcmd.c edit_reload (edit, exp_vpath); edit 987 src/editor/editcmd.c edit->modified = 0; edit 988 src/editor/editcmd.c edit->delete_file = 0; edit 990 src/editor/editcmd.c edit_load_syntax (edit, NULL, edit->syntax_type); edit 1008 src/editor/editcmd.c edit->force |= REDRAW_COMPLETELY; edit 1016 src/editor/editcmd.c edit_save_confirm_cmd (WEdit *edit) edit 1018 src/editor/editcmd.c if (edit->filename_vpath == NULL) edit 1019 src/editor/editcmd.c return edit_save_as_cmd (edit); edit 1021 src/editor/editcmd.c if (!edit_check_newline (&edit->buffer)) edit 1030 src/editor/editcmd.c vfs_path_as_str (edit->filename_vpath)); edit 1037 src/editor/editcmd.c return edit_save_cmd (edit); edit 1251 src/editor/editcmd.c edit_close_cmd (WEdit *edit) edit 1255 src/editor/editcmd.c ret = (edit != NULL) && edit_ok_to_exit (edit); edit 1259 src/editor/editcmd.c Widget *w = WIDGET (edit); edit 1262 src/editor/editcmd.c if (edit->locked != 0) edit 1263 src/editor/editcmd.c unlock_file (edit->filename_vpath); edit 1269 src/editor/editcmd.c edit = EDIT (g->current->data); edit 1272 src/editor/editcmd.c edit = edit_find_editor (DIALOG (g)); edit 1273 src/editor/editcmd.c if (edit != NULL) edit 1274 src/editor/editcmd.c widget_select (WIDGET (edit)); edit 1278 src/editor/editcmd.c if (edit != NULL) edit 1279 src/editor/editcmd.c edit->force |= REDRAW_COMPLETELY; edit 1287 src/editor/editcmd.c edit_block_copy_cmd (WEdit *edit) edit 1289 src/editor/editcmd.c off_t start_mark, end_mark, current = edit->buffer.curs1; edit 1295 src/editor/editcmd.c edit_update_curs_col (edit); edit 1296 src/editor/editcmd.c if (!eval_marks (edit, &start_mark, &end_mark)) edit 1299 src/editor/editcmd.c copy_buf = edit_get_block (edit, start_mark, end_mark, &size); edit 1303 src/editor/editcmd.c edit_push_markers (edit); edit 1305 src/editor/editcmd.c if (edit->column_highlight) edit 1309 src/editor/editcmd.c col_delta = labs (edit->column2 - edit->column1); edit 1310 src/editor/editcmd.c edit_insert_column_of_text (edit, copy_buf, size, col_delta, &mark1, &mark2, &c1, &c2); edit 1317 src/editor/editcmd.c edit_insert_ahead (edit, copy_buf[size]); edit 1321 src/editor/editcmd.c edit_cursor_move (edit, size_orig); edit 1325 src/editor/editcmd.c edit_scroll_screen_over_cursor (edit); edit 1327 src/editor/editcmd.c if (edit->column_highlight) edit 1328 src/editor/editcmd.c edit_set_markers (edit, edit->buffer.curs1, mark2, c1, c2); edit 1330 src/editor/editcmd.c edit_set_markers (edit, start_mark, end_mark + end_mark - start_mark, 0, 0); edit 1332 src/editor/editcmd.c edit->force |= REDRAW_PAGE; edit 1339 src/editor/editcmd.c edit_block_move_cmd (WEdit *edit) edit 1345 src/editor/editcmd.c if (!eval_marks (edit, &start_mark, &end_mark)) edit 1348 src/editor/editcmd.c if (!edit->column_highlight && edit->buffer.curs1 > start_mark && edit->buffer.curs1 < end_mark) edit 1351 src/editor/editcmd.c if (edit->mark2 < 0) edit 1352 src/editor/editcmd.c edit_mark_cmd (edit, FALSE); edit 1353 src/editor/editcmd.c edit_push_markers (edit); edit 1355 src/editor/editcmd.c if (edit->column_highlight) edit 1363 src/editor/editcmd.c c1 = MIN (edit->column1, edit->column2); edit 1364 src/editor/editcmd.c c2 = MAX (edit->column1, edit->column2); edit 1367 src/editor/editcmd.c edit_update_curs_col (edit); edit 1369 src/editor/editcmd.c x = edit->curs_col; edit 1370 src/editor/editcmd.c x2 = x + edit->over_col; edit 1373 src/editor/editcmd.c b1 = edit_buffer_get_eol (&edit->buffer, edit->buffer.curs1); edit 1374 src/editor/editcmd.c b2 = edit_buffer_get_eol (&edit->buffer, start_mark); edit 1378 src/editor/editcmd.c if (edit->buffer.curs1 > start_mark edit 1379 src/editor/editcmd.c && edit->buffer.curs1 < edit_buffer_get_eol (&edit->buffer, end_mark)) edit 1387 src/editor/editcmd.c copy_buf = edit_get_block (edit, start_mark, end_mark, &size); edit 1390 src/editor/editcmd.c edit_block_delete_cmd (edit); edit 1392 src/editor/editcmd.c edit->over_col = MAX (0, edit->over_col - b_width); edit 1394 src/editor/editcmd.c b1 = edit_buffer_get_current_bol (&edit->buffer); edit 1395 src/editor/editcmd.c current = edit_move_forward3 (edit, b1, x, 0); edit 1396 src/editor/editcmd.c edit_cursor_move (edit, current - edit->buffer.curs1); edit 1397 src/editor/editcmd.c edit_scroll_screen_over_cursor (edit); edit 1400 src/editor/editcmd.c if (edit_options.cursor_beyond_eol && edit->over_col > 0) edit 1401 src/editor/editcmd.c edit_insert_over (edit); edit 1403 src/editor/editcmd.c edit_insert_column_of_text (edit, copy_buf, size, b_width, &mark1, &mark2, &c1, &c2); edit 1404 src/editor/editcmd.c edit_set_markers (edit, mark1, mark2, c1, c2); edit 1411 src/editor/editcmd.c current = edit->buffer.curs1; edit 1413 src/editor/editcmd.c edit_cursor_move (edit, start_mark - edit->buffer.curs1); edit 1414 src/editor/editcmd.c edit_scroll_screen_over_cursor (edit); edit 1417 src/editor/editcmd.c copy_buf[end_mark - count - 1] = edit_delete (edit, TRUE); edit 1419 src/editor/editcmd.c edit_scroll_screen_over_cursor (edit); edit 1420 src/editor/editcmd.c x = current > edit->buffer.curs1 ? end_mark - start_mark : 0; edit 1421 src/editor/editcmd.c edit_cursor_move (edit, current - edit->buffer.curs1 - x); edit 1422 src/editor/editcmd.c edit_scroll_screen_over_cursor (edit); edit 1425 src/editor/editcmd.c edit_insert_ahead (edit, copy_buf[end_mark - count - 1]); edit 1427 src/editor/editcmd.c edit_set_markers (edit, edit->buffer.curs1, edit->buffer.curs1 + end_mark - start_mark, 0, edit 1432 src/editor/editcmd.c edit_cursor_move (edit, count_orig - start_mark); edit 1435 src/editor/editcmd.c edit_scroll_screen_over_cursor (edit); edit 1437 src/editor/editcmd.c edit->force |= REDRAW_PAGE; edit 1444 src/editor/editcmd.c edit_block_delete_cmd (WEdit *edit) edit 1448 src/editor/editcmd.c if (eval_marks (edit, &start_mark, &end_mark)) edit 1449 src/editor/editcmd.c return edit_block_delete (edit, start_mark, end_mark); edit 1451 src/editor/editcmd.c edit_delete_line (edit); edit 1464 src/editor/editcmd.c edit_ok_to_exit (WEdit *edit) edit 1470 src/editor/editcmd.c if (!edit->modified) edit 1473 src/editor/editcmd.c if (edit->filename_vpath != NULL) edit 1474 src/editor/editcmd.c fname = vfs_path_as_str (edit->filename_vpath); edit 1503 src/editor/editcmd.c if (!mc_global.midnight_shutdown && !edit_check_newline (&edit->buffer)) edit 1505 src/editor/editcmd.c edit_push_markers (edit); edit 1506 src/editor/editcmd.c edit_set_markers (edit, 0, 0, 0, 0); edit 1507 src/editor/editcmd.c if (!edit_save_cmd (edit) || mc_global.midnight_shutdown) edit 1525 src/editor/editcmd.c edit_save_block (WEdit *edit, const char *filename, off_t start, off_t finish) edit 1538 src/editor/editcmd.c if (edit->column_highlight) edit 1547 src/editor/editcmd.c p = block = edit_get_block (edit, start, finish, &len); edit 1572 src/editor/editcmd.c buf[i - start] = edit_buffer_get_byte (&edit->buffer, i); edit 1586 src/editor/editcmd.c edit_paste_from_history (WEdit *edit) edit 1588 src/editor/editcmd.c (void) edit; edit 1595 src/editor/editcmd.c edit_copy_to_X_buf_cmd (WEdit *edit) edit 1599 src/editor/editcmd.c if (!eval_marks (edit, &start_mark, &end_mark)) edit 1602 src/editor/editcmd.c if (!edit_save_block_to_clip_file (edit, start_mark, end_mark)) edit 1611 src/editor/editcmd.c edit_mark_cmd (edit, TRUE); edit 1619 src/editor/editcmd.c edit_cut_to_X_buf_cmd (WEdit *edit) edit 1623 src/editor/editcmd.c if (!eval_marks (edit, &start_mark, &end_mark)) edit 1626 src/editor/editcmd.c if (!edit_save_block_to_clip_file (edit, start_mark, end_mark)) edit 1634 src/editor/editcmd.c edit_block_delete_cmd (edit); edit 1635 src/editor/editcmd.c edit_mark_cmd (edit, TRUE); edit 1643 src/editor/editcmd.c edit_paste_from_X_buf_cmd (WEdit *edit) edit 1651 src/editor/editcmd.c ret = (edit_insert_file (edit, tmp) >= 0); edit 1664 src/editor/editcmd.c edit_goto_cmd (WEdit *edit) edit 1688 src/editor/editcmd.c l = edit->buffer.lines + l + 2; edit 1690 src/editor/editcmd.c edit_move_display (edit, l - WIDGET (edit)->rect.lines / 2 - 1); edit 1691 src/editor/editcmd.c edit_move_to_line (edit, l - 1); edit 1692 src/editor/editcmd.c edit->force |= REDRAW_COMPLETELY; edit 1702 src/editor/editcmd.c edit_save_block_cmd (WEdit *edit) edit 1708 src/editor/editcmd.c if (!eval_marks (edit, &start_mark, &end_mark)) edit 1716 src/editor/editcmd.c edit_push_undo_action (edit, KEY_PRESS + edit->start_display); edit 1720 src/editor/editcmd.c if (edit_save_block (edit, exp, start_mark, end_mark)) edit 1725 src/editor/editcmd.c edit->force |= REDRAW_COMPLETELY; edit 1737 src/editor/editcmd.c edit_insert_file_cmd (WEdit *edit) edit 1748 src/editor/editcmd.c edit_push_undo_action (edit, KEY_PRESS + edit->start_display); edit 1755 src/editor/editcmd.c ret = (edit_insert_file (edit, exp_vpath) >= 0); edit 1764 src/editor/editcmd.c edit->force |= REDRAW_COMPLETELY; edit 1772 src/editor/editcmd.c edit_sort_cmd (WEdit *edit) edit 1778 src/editor/editcmd.c if (!eval_marks (edit, &start_mark, &end_mark)) edit 1785 src/editor/editcmd.c edit_save_block (edit, tmp, start_mark, end_mark); edit 1823 src/editor/editcmd.c edit->force |= REDRAW_COMPLETELY; edit 1825 src/editor/editcmd.c if (!edit_block_delete_cmd (edit)) edit 1832 src/editor/editcmd.c edit_insert_file (edit, tmp_vpath); edit 1846 src/editor/editcmd.c edit_ext_cmd (WEdit *edit) edit 1874 src/editor/editcmd.c edit->force |= REDRAW_COMPLETELY; edit 1880 src/editor/editcmd.c edit_insert_file (edit, tmp_vpath); edit 1893 src/editor/editcmd.c edit_block_process_cmd (WEdit *edit, int macro_number) edit 1900 src/editor/editcmd.c edit_user_menu (edit, macros_fname, 0); edit 1903 src/editor/editcmd.c edit->force |= REDRAW_COMPLETELY; edit 1909 src/editor/editcmd.c edit_mail_dialog (WEdit *edit) edit 1939 src/editor/editcmd.c pipe_mail (&edit->buffer, mail_to, mail_subject, mail_cc); edit 1950 src/editor/editcmd.c edit_select_codepage_cmd (WEdit *edit) edit 1953 src/editor/editcmd.c edit_set_codeset (edit); edit 1955 src/editor/editcmd.c edit->force = REDRAW_PAGE; edit 1956 src/editor/editcmd.c widget_draw (WIDGET (edit)); edit 1963 src/editor/editcmd.c edit_insert_literal_cmd (WEdit *edit) edit 1969 src/editor/editcmd.c edit_execute_key_command (edit, -1, ascii_alpha_to_cntrl (char_for_insertion)); edit 1975 src/editor/editcmd.c edit_load_forward_cmd (WEdit *edit) edit 1977 src/editor/editcmd.c if (edit->modified edit 1983 src/editor/editcmd.c edit->force |= REDRAW_COMPLETELY; edit 1995 src/editor/editcmd.c return edit_reload_line (edit, &edit_history_moveto[edit_stack_iterator]); edit 2003 src/editor/editcmd.c edit_load_back_cmd (WEdit *edit) edit 2005 src/editor/editcmd.c if (edit->modified edit 2011 src/editor/editcmd.c edit->force |= REDRAW_COMPLETELY; edit 2021 src/editor/editcmd.c return edit_reload_line (edit, &edit_history_moveto[edit_stack_iterator]); edit 76 src/editor/editcomplete.c WEdit *edit = esm->edit; edit 80 src/editor/editcomplete.c if (mc_search_run (srch, (void *) esm, word_start, edit->buffer.size, &len)) edit 88 src/editor/editcomplete.c chr = edit_buffer_get_byte (&edit->buffer, word_start + i); edit 134 src/editor/editcomplete.c ch = edit_buffer_get_byte (&esm->edit->buffer, start + i); edit 221 src/editor/editcomplete.c edit_collect_completions (WEdit *edit, off_t word_start, gsize word_len, edit 243 src/editor/editcomplete.c last_byte = entire_file ? edit->buffer.size : word_start; edit 251 src/editor/editcomplete.c esm.edit = edit; edit 271 src/editor/editcomplete.c const WGroup *owner = CONST_GROUP (CONST_WIDGET (edit)->owner); edit 289 src/editor/editcomplete.c if (e == edit) edit 295 src/editor/editcomplete.c esm.edit = e; edit 324 src/editor/editcomplete.c edit_complete_word_insert_recoded_completion (WEdit *edit, char *completion, gsize word_len) edit 333 src/editor/editcomplete.c edit_insert (edit, *completion); edit 338 src/editor/editcomplete.c edit_insert (edit, *completion); edit 357 src/editor/editcomplete.c edit_completion_dialog_show (const WEdit *edit, GQueue *compl, int max_width) edit 359 src/editor/editcomplete.c const WRect *we = &CONST_WIDGET (edit)->rect; edit 371 src/editor/editcomplete.c start_x = we->x + edit->curs_col + edit->start_col + EDIT_TEXT_HORIZONTAL_OFFSET + edit 372 src/editor/editcomplete.c (edit->fullscreen ? 0 : 1) + edit_options.line_state_width; edit 373 src/editor/editcomplete.c start_y = we->y + edit->curs_row + EDIT_TEXT_VERTICAL_OFFSET + (edit->fullscreen ? 0 : 1) + 1; edit 427 src/editor/editcomplete.c edit_complete_word_cmd (WEdit *edit) edit 437 src/editor/editcomplete.c if (!edit_buffer_find_word_start (&edit->buffer, &word_start, &word_len)) edit 444 src/editor/editcomplete.c g_string_append_c (match_expr, edit_buffer_get_byte (&edit->buffer, word_start + i)); edit 449 src/editor/editcomplete.c compl = edit_collect_completions (edit, word_start, word_len, match_expr->str, &max_width); edit 463 src/editor/editcomplete.c edit_complete_word_insert_recoded_completion (edit, curr_compl->str, word_len); edit 472 src/editor/editcomplete.c curr_compl = edit_completion_dialog_show (edit, compl, max_width); edit 475 src/editor/editcomplete.c edit_complete_word_insert_recoded_completion (edit, curr_compl, word_len); edit 15 src/editor/editcomplete.h MC_MOCKABLE char *edit_completion_dialog_show (const WEdit * edit, GQueue * compl, int max_width); edit 17 src/editor/editcomplete.h void edit_complete_word_cmd (WEdit * edit); edit 71 src/editor/editdraw.c #define edit_move(x,y) widget_gotoyx(edit, y, x); edit 101 src/editor/editdraw.c status_string (WEdit *edit, char *s, int w) edit 110 src/editor/editdraw.c if (edit->buffer.curs1 >= edit->buffer.size) edit 113 src/editor/editdraw.c else if (edit->utf8) edit 118 src/editor/editdraw.c cur_utf = edit_buffer_get_utf (&edit->buffer, edit->buffer.curs1, &char_length); edit 124 src/editor/editdraw.c cur_utf = edit_buffer_get_current_byte (&edit->buffer); edit 134 src/editor/editdraw.c cur_byte = edit_buffer_get_current_byte (&edit->buffer); edit 142 src/editor/editdraw.c edit->mark1 != edit->mark2 ? (edit->column_highlight ? 'C' : 'B') : '-', edit 143 src/editor/editdraw.c edit->modified ? 'M' : '-', edit 145 src/editor/editdraw.c edit->overwrite == 0 ? '-' : 'O', edit 146 src/editor/editdraw.c edit->curs_col + edit->over_col, edit 147 src/editor/editdraw.c edit->buffer.curs_line + 1, edit 148 src/editor/editdraw.c edit->buffer.lines + 1, (long) edit->buffer.curs1, (long) edit->buffer.size, edit 157 src/editor/editdraw.c edit->mark1 != edit->mark2 ? (edit->column_highlight ? 'C' : 'B') : '-', edit 158 src/editor/editdraw.c edit->modified ? 'M' : '-', edit 160 src/editor/editdraw.c edit->overwrite == 0 ? '-' : 'O', edit 161 src/editor/editdraw.c edit->curs_col + edit->over_col, edit 162 src/editor/editdraw.c edit->start_line + 1, edit 163 src/editor/editdraw.c edit->curs_row, edit 164 src/editor/editdraw.c edit->buffer.curs_line + 1, edit 165 src/editor/editdraw.c edit->buffer.lines + 1, (long) edit->buffer.curs1, (long) edit->buffer.size, edit 182 src/editor/editdraw.c edit_status_fullscreen (WEdit *edit, int color) edit 184 src/editor/editdraw.c Widget *h = WIDGET (WIDGET (edit)->owner); edit 197 src/editor/editdraw.c status_string (edit, status, status_size); edit 200 src/editor/editdraw.c if (edit->filename_vpath != NULL) edit 202 src/editor/editdraw.c fname = vfs_path_get_last_path_str (edit->filename_vpath); edit 230 src/editor/editdraw.c percent = edit_buffer_calc_percent (&edit->buffer, edit->buffer.curs1); edit 246 src/editor/editdraw.c edit_status_window (WEdit *edit) edit 248 src/editor/editdraw.c Widget *w = WIDGET (edit); edit 258 src/editor/editdraw.c if (edit->filename_vpath != NULL) edit 260 src/editor/editdraw.c fname = vfs_path_get_last_path_str (edit->filename_vpath); edit 281 src/editor/editdraw.c edit->mark1 != edit->mark2 ? (edit->column_highlight ? 'C' : 'B') : '-', edit 282 src/editor/editdraw.c edit->modified ? 'M' : '-', edit 283 src/editor/editdraw.c macro_index < 0 ? '-' : 'R', edit->overwrite == 0 ? '-' : 'O'); edit 290 src/editor/editdraw.c edit->curs_col + edit->over_col, edit 291 src/editor/editdraw.c edit->buffer.curs_line + 1, edit->buffer.lines + 1, (long) edit->buffer.curs1, edit 292 src/editor/editdraw.c (long) edit->buffer.size); edit 303 src/editor/editdraw.c if (edit->buffer.curs1 >= edit->buffer.size) edit 306 src/editor/editdraw.c else if (edit->utf8) edit 311 src/editor/editdraw.c cur_utf = edit_buffer_get_utf (&edit->buffer, edit->buffer.curs1, &char_length); edit 313 src/editor/editdraw.c cur_utf = edit_buffer_get_current_byte (&edit->buffer); edit 321 src/editor/editdraw.c cur_byte = edit_buffer_get_current_byte (&edit->buffer); edit 337 src/editor/editdraw.c edit_draw_frame (const WEdit *edit, int color, gboolean active) edit 339 src/editor/editdraw.c const Widget *w = CONST_WIDGET (edit); edit 346 src/editor/editdraw.c if (edit->drag_state == MCEDIT_DRAG_NONE) edit 363 src/editor/editdraw.c edit_draw_window_icons (const WEdit *edit, int color) edit 365 src/editor/editdraw.c const Widget *w = CONST_WIDGET (edit); edit 369 src/editor/editdraw.c if (edit->fullscreen) edit 380 src/editor/editdraw.c print_to_widget (WEdit *edit, long row, int start_col, int start_col_real, edit 383 src/editor/editdraw.c Widget *w = WIDGET (edit); edit 395 src/editor/editdraw.c if (!edit->fullscreen) edit 406 src/editor/editdraw.c wrap_start = edit_options.word_wrap_line_length + edit->start_col; edit 482 src/editor/editdraw.c if (i > edit_options.word_wrap_line_length + edit->start_col) edit 495 src/editor/editdraw.c edit_draw_this_line (WEdit *edit, off_t b, long row, long start_col, long end_col) edit 497 src/editor/editdraw.c Widget *w = WIDGET (edit); edit 506 src/editor/editdraw.c if (row > w->rect.lines - 1 - EDIT_TEXT_VERTICAL_OFFSET - 2 * (edit->fullscreen ? 0 : 1)) edit 509 src/editor/editdraw.c if (book_mark_query_color (edit, edit->start_line + row, BOOK_MARK_COLOR)) edit 511 src/editor/editdraw.c else if (book_mark_query_color (edit, edit->start_line + row, BOOK_MARK_FOUND_COLOR)) edit 520 src/editor/editdraw.c if (!edit->fullscreen) edit 527 src/editor/editdraw.c q = edit_move_forward3 (edit, b, start_col - edit->start_col, 0); edit 528 src/editor/editdraw.c col = (int) edit_move_forward3 (edit, b, 0, q); edit 529 src/editor/editdraw.c start_col_real = col + edit->start_col; edit 535 src/editor/editdraw.c cur_line = edit->start_line + row; edit 536 src/editor/editdraw.c if (cur_line <= edit->buffer.lines) edit 544 src/editor/editdraw.c if (book_mark_query_color (edit, cur_line, BOOK_MARK_COLOR)) edit 548 src/editor/editdraw.c if (col <= -(edit->start_col + 16)) edit 554 src/editor/editdraw.c eval_marks (edit, &m1, &m2); edit 556 src/editor/editdraw.c if (row <= edit->buffer.lines - edit->start_line) edit 561 src/editor/editdraw.c for (tws = edit_buffer_get_eol (&edit->buffer, b); tws > b; tws--) edit 565 src/editor/editdraw.c c = edit_buffer_get_byte (&edit->buffer, tws - 1); edit 570 src/editor/editdraw.c while (col <= end_col - edit->start_col) edit 579 src/editor/editdraw.c p->style = q == edit->buffer.curs1 ? MOD_CURSOR : 0; edit 583 src/editor/editdraw.c if (!edit->column_highlight) edit 589 src/editor/editdraw.c x = (long) edit_move_forward3 (edit, b, 0, q); edit 590 src/editor/editdraw.c cl = MIN (edit->column1, edit->column2); edit 593 src/editor/editdraw.c cl = MAX (edit->column1, edit->column2); edit 600 src/editor/editdraw.c if (q == edit->bracket) edit 602 src/editor/editdraw.c if (q >= edit->found_start && q < (off_t) (edit->found_start + edit->found_len)) edit 606 src/editor/editdraw.c if (edit->utf8) edit 607 src/editor/editdraw.c c = edit_buffer_get_utf (&edit->buffer, q, &char_length); edit 610 src/editor/editdraw.c c = edit_buffer_get_byte (&edit->buffer, q); edit 619 src/editor/editdraw.c color = edit_get_syntax_color (edit, q); edit 626 src/editor/editdraw.c col = end_col - edit->start_col + 1; /* quit */ edit 635 src/editor/editdraw.c tab_over = (end_col - edit->start_col) - (col + i - 1); edit 724 src/editor/editdraw.c if (!edit->utf8) edit 725 src/editor/editdraw.c c = convert_from_8bit_to_utf_c ((unsigned char) c, edit->converter); edit 732 src/editor/editdraw.c else if (edit->utf8) edit 733 src/editor/editdraw.c c = convert_from_utf_to_current_c (c, edit->converter); edit 765 src/editor/editdraw.c if (edit->utf8) edit 795 src/editor/editdraw.c if (col > (end_col - edit->start_col + 1)) edit 814 src/editor/editdraw.c print_to_widget (edit, row, start_col, start_col_real, end_col, line, line_stat, book_mark); edit 820 src/editor/editdraw.c edit_draw_this_char (WEdit *edit, off_t curs, long row, long start_column, long end_column) edit 824 src/editor/editdraw.c b = edit_buffer_get_bol (&edit->buffer, curs); edit 825 src/editor/editdraw.c edit_draw_this_line (edit, b, row, start_column, end_column); edit 832 src/editor/editdraw.c render_edit_text (WEdit *edit, long start_row, long start_column, long end_row, long end_column) edit 837 src/editor/editdraw.c Widget *we = WIDGET (edit); edit 841 src/editor/editdraw.c int force = edit->force; edit 898 src/editor/editdraw.c b = edit_buffer_get_forward_offset (&edit->buffer, edit->start_display, start_row, 0); edit 901 src/editor/editdraw.c if (key_pending (edit)) edit 903 src/editor/editdraw.c edit_draw_this_line (edit, b, row, start_column, end_column); edit 904 src/editor/editdraw.c b = edit_buffer_get_forward_offset (&edit->buffer, b, 1, 0); edit 909 src/editor/editdraw.c long curs_row = edit->curs_row; edit 915 src/editor/editdraw.c b = edit->start_display; edit 919 src/editor/editdraw.c if (key_pending (edit)) edit 921 src/editor/editdraw.c edit_draw_this_line (edit, b, row, start_column, end_column); edit 922 src/editor/editdraw.c b = edit_buffer_get_forward_offset (&edit->buffer, b, 1, 0); edit 927 src/editor/editdraw.c b = edit_buffer_get_current_bol (&edit->buffer); edit 930 src/editor/editdraw.c if (key_pending (edit)) edit 932 src/editor/editdraw.c edit_draw_this_line (edit, b, curs_row, start_column, end_column); edit 937 src/editor/editdraw.c b = edit_buffer_get_forward_offset (&edit->buffer, b, 1, 0); edit 940 src/editor/editdraw.c if (key_pending (edit)) edit 942 src/editor/editdraw.c edit_draw_this_line (edit, b, row, start_column, end_column); edit 943 src/editor/editdraw.c b = edit_buffer_get_forward_offset (&edit->buffer, b, 1, 0); edit 950 src/editor/editdraw.c b = edit_buffer_get_current_bol (&edit->buffer); edit 951 src/editor/editdraw.c b = edit_buffer_get_backward_offset (&edit->buffer, b, 1); edit 954 src/editor/editdraw.c if (key_pending (edit)) edit 956 src/editor/editdraw.c edit_draw_this_line (edit, b, row, start_column, end_column); edit 963 src/editor/editdraw.c b = edit_buffer_get_current_bol (&edit->buffer); edit 964 src/editor/editdraw.c b = edit_buffer_get_forward_offset (&edit->buffer, b, 1, 0); edit 967 src/editor/editdraw.c if (key_pending (edit)) edit 969 src/editor/editdraw.c edit_draw_this_line (edit, b, row, start_column, end_column); edit 974 src/editor/editdraw.c else if (prev_curs_row < edit->curs_row) edit 977 src/editor/editdraw.c edit_draw_this_char (edit, prev_curs, prev_curs_row, start_column, end_column); edit 978 src/editor/editdraw.c edit_draw_this_char (edit, edit->buffer.curs1, edit->curs_row, start_column, end_column); edit 982 src/editor/editdraw.c edit_draw_this_char (edit, edit->buffer.curs1, edit->curs_row, start_column, end_column); edit 983 src/editor/editdraw.c edit_draw_this_char (edit, prev_curs, prev_curs_row, start_column, end_column); edit 986 src/editor/editdraw.c edit->force = 0; edit 988 src/editor/editdraw.c prev_curs_row = edit->curs_row; edit 989 src/editor/editdraw.c prev_curs = edit->buffer.curs1; edit 995 src/editor/editdraw.c edit_render (WEdit *edit, int page, int row_start, int col_start, int row_end, int col_end) edit 998 src/editor/editdraw.c edit->force |= REDRAW_PAGE | REDRAW_IN_BOUNDS; edit 1000 src/editor/editdraw.c render_edit_text (edit, row_start, col_start, row_end, col_end); edit 1007 src/editor/editdraw.c if (edit->force != 0) edit 1008 src/editor/editdraw.c edit->force |= REDRAW_PAGE; edit 1016 src/editor/editdraw.c edit_status (WEdit *edit, gboolean active) edit 1020 src/editor/editdraw.c if (edit->fullscreen) edit 1023 src/editor/editdraw.c edit_status_fullscreen (edit, color); edit 1027 src/editor/editdraw.c color = edit->drag_state != MCEDIT_DRAG_NONE ? EDITOR_FRAME_DRAG : active ? edit 1029 src/editor/editdraw.c edit_draw_frame (edit, color, active); edit 1030 src/editor/editdraw.c edit_status_window (edit); edit 1033 src/editor/editdraw.c edit_draw_window_icons (edit, color); edit 1040 src/editor/editdraw.c edit_scroll_screen_over_cursor (WEdit *edit) edit 1042 src/editor/editdraw.c WRect *w = &WIDGET (edit)->rect; edit 1054 src/editor/editdraw.c if (!edit->fullscreen) edit 1061 src/editor/editdraw.c if (edit->found_len != 0) edit 1086 src/editor/editdraw.c p = edit_get_col (edit) + edit->over_col; edit 1087 src/editor/editdraw.c edit_update_curs_row (edit); edit 1088 src/editor/editdraw.c outby = p + edit->start_col - w->cols + 1 + (r_extreme + edit->found_len); edit 1090 src/editor/editdraw.c edit_scroll_right (edit, outby); edit 1091 src/editor/editdraw.c outby = l_extreme - p - edit->start_col; edit 1093 src/editor/editdraw.c edit_scroll_left (edit, outby); edit 1094 src/editor/editdraw.c p = edit->curs_row; edit 1097 src/editor/editdraw.c edit_scroll_downward (edit, outby); edit 1100 src/editor/editdraw.c edit_scroll_upward (edit, outby); edit 1101 src/editor/editdraw.c edit_update_curs_row (edit); edit 1105 src/editor/editdraw.c if (!edit->fullscreen) edit 1112 src/editor/editdraw.c edit_render_keypress (WEdit *edit) edit 1114 src/editor/editdraw.c edit_render (edit, 0, 0, 0, 0, 0); edit 75 src/editor/editmacros.c edit_get_macro (WEdit *edit, int hotkey) edit 83 src/editor/editmacros.c (void) edit; edit 100 src/editor/editmacros.c edit_delete_macro (WEdit *edit, int hotkey) edit 109 src/editor/editmacros.c while ((indx = edit_get_macro (edit, hotkey)) != -1) edit 140 src/editor/editmacros.c edit_store_macro_cmd (WEdit *edit) edit 157 src/editor/editmacros.c tmp_act = keybind_lookup_keymap_command (WIDGET (edit)->keymap, hotkey); edit 163 src/editor/editmacros.c edit_delete_macro (edit, hotkey); edit 172 src/editor/editmacros.c edit_push_undo_action (edit, KEY_PRESS + edit->start_display); edit 226 src/editor/editmacros.c edit_load_macro_cmd (WEdit *edit) edit 234 src/editor/editmacros.c (void) edit; edit 319 src/editor/editmacros.c edit_delete_macro_cmd (WEdit *edit) edit 325 src/editor/editmacros.c if (hotkey != 0 && !edit_delete_macro (edit, hotkey)) edit 332 src/editor/editmacros.c edit_repeat_macro_cmd (WEdit *edit) edit 357 src/editor/editmacros.c edit_push_undo_action (edit, KEY_PRESS + edit->start_display); edit 358 src/editor/editmacros.c edit->force |= REDRAW_PAGE; edit 362 src/editor/editmacros.c edit_execute_cmd (edit, record_macro_buf[i].action, record_macro_buf[i].ch); edit 364 src/editor/editmacros.c edit_update_screen (edit); edit 374 src/editor/editmacros.c edit_execute_macro (WEdit *edit, int hotkey) edit 382 src/editor/editmacros.c indx = edit_get_macro (edit, hotkey); edit 392 src/editor/editmacros.c edit->force |= REDRAW_PAGE; edit 399 src/editor/editmacros.c edit_execute_cmd (edit, m_act->action, m_act->ch); edit 412 src/editor/editmacros.c edit_begin_end_macro_cmd (WEdit *edit) edit 415 src/editor/editmacros.c if (edit != NULL) edit 419 src/editor/editmacros.c edit_execute_key_command (edit, command, -1); edit 426 src/editor/editmacros.c edit_begin_end_repeat_cmd (WEdit *edit) edit 429 src/editor/editmacros.c if (edit != NULL) edit 433 src/editor/editmacros.c edit_execute_key_command (edit, command, -1); edit 14 src/editor/editmacros.h int edit_store_macro_cmd (WEdit * edit); edit 15 src/editor/editmacros.h MC_MOCKABLE gboolean edit_load_macro_cmd (WEdit * edit); edit 16 src/editor/editmacros.h void edit_delete_macro_cmd (WEdit * edit); edit 17 src/editor/editmacros.h gboolean edit_repeat_macro_cmd (WEdit * edit); edit 18 src/editor/editmacros.h gboolean edit_execute_macro (WEdit * edit, int hotkey); edit 19 src/editor/editmacros.h void edit_begin_end_macro_cmd (WEdit * edit); edit 20 src/editor/editmacros.h void edit_begin_end_repeat_cmd (WEdit * edit); edit 110 src/editor/editoptions.c WEdit *edit = EDIT (data); edit 112 src/editor/editoptions.c edit_load_syntax (edit, NULL, edit->syntax_type); edit 76 src/editor/editsearch.c edit_dialog_search_show (WEdit *edit) edit 146 src/editor/editsearch.c edit_search_deinit (edit); edit 147 src/editor/editsearch.c edit->last_search_string = search_text; edit 149 src/editor/editsearch.c return edit_search_init (edit, edit->last_search_string); edit 155 src/editor/editsearch.c edit_dialog_replace_show (WEdit *edit, const char *search_default, const char *replace_default, edit 200 src/editor/editsearch.c edit->replace_mode = 0; edit 214 src/editor/editsearch.c edit_dialog_replace_prompt_show (WEdit *edit, char *from_text, char *to_text, int xpos, int ypos) edit 216 src/editor/editsearch.c Widget *w = WIDGET (edit); edit 231 src/editor/editsearch.c if ((edit->curs_row >= ypos - 1) && (edit->curs_row <= ypos + dlg_height - 1)) edit 283 src/editor/editsearch.c edit_search_get_current_end_line_char (const WEdit *edit) edit 285 src/editor/editsearch.c switch (edit->lb) edit 416 src/editor/editsearch.c edit_search_fix_search_start_if_selection (WEdit *edit) edit 424 src/editor/editsearch.c if (!eval_marks (edit, &start_mark, &end_mark)) edit 429 src/editor/editsearch.c if (edit->search_start > end_mark || edit->search_start <= start_mark) edit 430 src/editor/editsearch.c edit->search_start = end_mark; edit 434 src/editor/editsearch.c if (edit->search_start < start_mark || edit->search_start >= end_mark) edit 435 src/editor/editsearch.c edit->search_start = start_mark; edit 444 src/editor/editsearch.c WEdit *edit = esm->edit; edit 445 src/editor/editsearch.c off_t search_start = edit->search_start; edit 448 src/editor/editsearch.c off_t end_mark = edit->buffer.size; edit 451 src/editor/editsearch.c end_string_symbol = edit_search_get_current_end_line_char (edit); edit 456 src/editor/editsearch.c if (!eval_marks (edit, &start_mark, &end_mark)) edit 458 src/editor/editsearch.c mc_search_set_error (edit->search, MC_SEARCH_E_NOTFOUND, "%s", _(STR_E_NOTFOUND)); edit 463 src/editor/editsearch.c if ((edit->search_line_type & AT_START_LINE) != 0 edit 465 src/editor/editsearch.c || edit_buffer_get_byte (&edit->buffer, start_mark - 1) != end_string_symbol)) edit 467 src/editor/editsearch.c edit_calculate_start_of_next_line (&edit->buffer, start_mark, edit->buffer.size, edit 470 src/editor/editsearch.c if ((edit->search_line_type & AT_END_LINE) != 0 edit 471 src/editor/editsearch.c && (end_mark - 1 != edit->buffer.size edit 472 src/editor/editsearch.c || edit_buffer_get_byte (&edit->buffer, end_mark) != end_string_symbol)) edit 474 src/editor/editsearch.c edit_calculate_end_of_previous_line (&edit->buffer, end_mark, end_string_symbol); edit 478 src/editor/editsearch.c mc_search_set_error (edit->search, MC_SEARCH_E_NOTFOUND, "%s", _(STR_E_NOTFOUND)); edit 483 src/editor/editsearch.c end_mark = MAX (1, edit->buffer.curs1) - 1; edit 491 src/editor/editsearch.c if ((edit->search_line_type & AT_START_LINE) != 0) edit 493 src/editor/editsearch.c edit_calculate_start_of_current_line (&edit->buffer, search_start, edit 500 src/editor/editsearch.c if (search_end > (off_t) (search_start + edit->search->original.str->len) edit 501 src/editor/editsearch.c && mc_search_is_fixed_search_str (edit->search)) edit 502 src/editor/editsearch.c search_end = search_start + edit->search->original.str->len; edit 504 src/editor/editsearch.c ok = mc_search_run (edit->search, (void *) esm, search_start, search_end, len); edit 506 src/editor/editsearch.c if (ok && edit->search->normal_offset == search_start) edit 511 src/editor/editsearch.c if (!ok && edit->search->error != MC_SEARCH_E_NOTFOUND) edit 514 src/editor/editsearch.c if ((edit->search_line_type & AT_START_LINE) != 0) edit 516 src/editor/editsearch.c edit_calculate_start_of_previous_line (&edit->buffer, search_start, edit 522 src/editor/editsearch.c mc_search_set_error (edit->search, MC_SEARCH_E_NOTFOUND, "%s", _(STR_E_NOTFOUND)); edit 527 src/editor/editsearch.c if ((edit->search_line_type & AT_START_LINE) != 0 && search_start != start_mark) edit 529 src/editor/editsearch.c edit_calculate_start_of_next_line (&edit->buffer, search_start, end_mark, edit 532 src/editor/editsearch.c return mc_search_run (edit->search, (void *) esm, search_start, end_mark, len); edit 576 src/editor/editsearch.c edit_show_search_error (const WEdit *edit, const char *title) edit 578 src/editor/editsearch.c if (edit->search->error == MC_SEARCH_E_NOTFOUND) edit 580 src/editor/editsearch.c else if (edit->search->error_str != NULL) edit 581 src/editor/editsearch.c edit_query_dialog (title, edit->search->error_str); edit 587 src/editor/editsearch.c edit_do_search (WEdit *edit) edit 593 src/editor/editsearch.c assert (edit->search != NULL); edit 595 src/editor/editsearch.c edit_push_undo_action (edit, KEY_PRESS + edit->start_display); edit 598 src/editor/editsearch.c esm.edit = edit; edit 599 src/editor/editsearch.c esm.offset = edit->search_start; edit 611 src/editor/editsearch.c book_mark_flush (edit, -1); edit 613 src/editor/editsearch.c while (mc_search_run (edit->search, (void *) &esm, q, edit->buffer.size, &len)) edit 616 src/editor/editsearch.c edit->search_start = edit->search->normal_offset; edit 619 src/editor/editsearch.c l += edit_buffer_count_lines (&edit->buffer, q, edit->search->normal_offset); edit 621 src/editor/editsearch.c book_mark_insert (edit, l, BOOK_MARK_FOUND_COLOR); edit 623 src/editor/editsearch.c q = edit->search->normal_offset + 1; edit 629 src/editor/editsearch.c edit_cursor_move (edit, edit->search_start - edit->buffer.curs1); edit 633 src/editor/editsearch.c if (edit->found_len != 0 && edit->search_start == edit->found_start + 1 edit 635 src/editor/editsearch.c edit->search_start--; edit 637 src/editor/editsearch.c if (edit->found_len != 0 && edit->search_start == edit->found_start - 1 edit 639 src/editor/editsearch.c edit->search_start++; edit 643 src/editor/editsearch.c edit->found_start = edit->search_start = edit->search->normal_offset; edit 644 src/editor/editsearch.c edit->found_len = len; edit 645 src/editor/editsearch.c edit->over_col = 0; edit 646 src/editor/editsearch.c edit_cursor_move (edit, edit->search_start - edit->buffer.curs1); edit 647 src/editor/editsearch.c edit_scroll_screen_over_cursor (edit); edit 649 src/editor/editsearch.c edit->search_start--; edit 651 src/editor/editsearch.c edit->search_start++; edit 655 src/editor/editsearch.c edit->search_start = edit->buffer.curs1; edit 656 src/editor/editsearch.c edit_show_search_error (edit, _("Search")); edit 662 src/editor/editsearch.c edit->force |= REDRAW_COMPLETELY; edit 663 src/editor/editsearch.c edit_scroll_screen_over_cursor (edit); edit 669 src/editor/editsearch.c edit_search (WEdit *edit) edit 671 src/editor/editsearch.c if (edit_dialog_search_show (edit)) edit 672 src/editor/editsearch.c edit_do_search (edit); edit 680 src/editor/editsearch.c edit_search_init (WEdit *edit, const char *str) edit 683 src/editor/editsearch.c edit->search = mc_search_new (str, cp_source); edit 685 src/editor/editsearch.c edit->search = mc_search_new (str, NULL); edit 688 src/editor/editsearch.c if (edit->search == NULL) edit 691 src/editor/editsearch.c edit->search->search_type = edit_search_options.type; edit 693 src/editor/editsearch.c edit->search->is_all_charsets = edit_search_options.all_codepages; edit 695 src/editor/editsearch.c edit->search->is_case_sensitive = edit_search_options.case_sens; edit 696 src/editor/editsearch.c edit->search->whole_words = edit_search_options.whole_words; edit 697 src/editor/editsearch.c edit->search->search_fn = edit_search_cmd_callback; edit 698 src/editor/editsearch.c edit->search->update_fn = edit_search_update_callback; edit 700 src/editor/editsearch.c edit->search_line_type = edit_get_search_line_type (edit->search); edit 702 src/editor/editsearch.c edit_search_fix_search_start_if_selection (edit); edit 710 src/editor/editsearch.c edit_search_deinit (WEdit *edit) edit 712 src/editor/editsearch.c mc_search_free (edit->search); edit 713 src/editor/editsearch.c g_free (edit->last_search_string); edit 721 src/editor/editsearch.c WEdit *edit = ((const edit_search_status_msg_t *) user_data)->edit; edit 723 src/editor/editsearch.c *current_char = edit_buffer_get_byte (&edit->buffer, (off_t) char_offset); edit 750 src/editor/editsearch.c label_set_textv (ssm->label, _("Searching %s: %3d%%"), esm->edit->last_search_string, edit 751 src/editor/editsearch.c edit_buffer_calc_percent (&esm->edit->buffer, esm->offset)); edit 753 src/editor/editsearch.c label_set_textv (ssm->label, _("Searching %s"), esm->edit->last_search_string); edit 775 src/editor/editsearch.c edit_search_cmd (WEdit *edit, gboolean again) edit 778 src/editor/editsearch.c edit_search (edit); edit 779 src/editor/editsearch.c else if (edit->last_search_string != NULL) edit 780 src/editor/editsearch.c edit_do_search (edit); edit 789 src/editor/editsearch.c edit->last_search_string = s; edit 791 src/editor/editsearch.c if (edit_search_init (edit, edit->last_search_string)) edit 793 src/editor/editsearch.c edit_do_search (edit); edit 798 src/editor/editsearch.c MC_PTR_FREE (edit->last_search_string); edit 802 src/editor/editsearch.c edit_search (edit); edit 810 src/editor/editsearch.c edit_replace_cmd (WEdit *edit, gboolean again) edit 824 src/editor/editsearch.c if (edit == NULL) edit 831 src/editor/editsearch.c edit->force |= REDRAW_COMPLETELY; edit 848 src/editor/editsearch.c edit_push_undo_action (edit, KEY_PRESS + edit->start_display); edit 850 src/editor/editsearch.c edit_dialog_replace_show (edit, disp1, disp2, &input1, &input2); edit 857 src/editor/editsearch.c edit->force = REDRAW_COMPLETELY; edit 873 src/editor/editsearch.c mc_search_free (edit->search); edit 874 src/editor/editsearch.c edit->search = NULL; edit 880 src/editor/editsearch.c if (edit->search == NULL && !edit_search_init (edit, input1)) edit 882 src/editor/editsearch.c edit->search_start = edit->buffer.curs1; edit 886 src/editor/editsearch.c if (edit->found_len != 0 && edit->search_start == edit->found_start + 1 edit 888 src/editor/editsearch.c edit->search_start--; edit 890 src/editor/editsearch.c if (edit->found_len != 0 && edit->search_start == edit->found_start - 1 edit 892 src/editor/editsearch.c edit->search_start++; edit 895 src/editor/editsearch.c esm.edit = edit; edit 896 src/editor/editsearch.c esm.offset = edit->search_start; edit 907 src/editor/editsearch.c if (!(edit->search->error == MC_SEARCH_E_OK || edit 908 src/editor/editsearch.c (once_found && edit->search->error == MC_SEARCH_E_NOTFOUND))) edit 909 src/editor/editsearch.c edit_show_search_error (edit, _("Search")); edit 915 src/editor/editsearch.c edit->search_start = edit->search->normal_offset; edit 918 src/editor/editsearch.c if (edit->search_start >= 0 && edit->search_start < edit->buffer.size) edit 923 src/editor/editsearch.c edit->found_start = edit->search_start; edit 924 src/editor/editsearch.c edit->found_len = len; edit 926 src/editor/editsearch.c edit_cursor_move (edit, edit->search_start - edit->buffer.curs1); edit 927 src/editor/editsearch.c edit_scroll_screen_over_cursor (edit); edit 929 src/editor/editsearch.c if (edit->replace_mode == 0) edit 934 src/editor/editsearch.c l = edit->curs_row - WIDGET (edit)->rect.lines / 3; edit 936 src/editor/editsearch.c edit_scroll_downward (edit, l); edit 938 src/editor/editsearch.c edit_scroll_upward (edit, -l); edit 940 src/editor/editsearch.c edit_scroll_screen_over_cursor (edit); edit 941 src/editor/editsearch.c edit->force |= REDRAW_PAGE; edit 942 src/editor/editsearch.c edit_render_keypress (edit); edit 945 src/editor/editsearch.c edit_push_key_press (edit); edit 949 src/editor/editsearch.c prompt = edit_dialog_replace_prompt_show (edit, disp1, disp2, -1, -1); edit 954 src/editor/editsearch.c edit->replace_mode = 1; edit 958 src/editor/editsearch.c edit->search_start--; edit 960 src/editor/editsearch.c edit->search_start++; edit 965 src/editor/editsearch.c edit->replace_mode = -1; edit 970 src/editor/editsearch.c repl_str = mc_search_prepare_replace_str (edit->search, input2_str); edit 972 src/editor/editsearch.c if (edit->search->error != MC_SEARCH_E_OK) edit 974 src/editor/editsearch.c edit_show_search_error (edit, _("Replace")); edit 982 src/editor/editsearch.c edit_delete (edit, TRUE); edit 985 src/editor/editsearch.c edit_insert (edit, repl_str->str[i]); edit 987 src/editor/editsearch.c edit->found_len = repl_str->len; edit 993 src/editor/editsearch.c edit->search_start--; edit 996 src/editor/editsearch.c edit->search_start += edit->found_len + (len == 0 ? 1 : 0); edit 998 src/editor/editsearch.c if (edit->search_start >= edit->buffer.size) edit 1002 src/editor/editsearch.c edit_scroll_screen_over_cursor (edit); edit 1007 src/editor/editsearch.c edit->search_start = edit->buffer.curs1; edit 1008 src/editor/editsearch.c edit_update_curs_col (edit); edit 1010 src/editor/editsearch.c edit->force |= REDRAW_PAGE; edit 1011 src/editor/editsearch.c edit_render_keypress (edit); edit 1018 src/editor/editsearch.c while (edit->replace_mode >= 0); edit 1021 src/editor/editsearch.c edit_scroll_screen_over_cursor (edit); edit 1022 src/editor/editsearch.c edit->force |= REDRAW_COMPLETELY; edit 1023 src/editor/editsearch.c edit_render_keypress (edit); edit 1025 src/editor/editsearch.c if (edit->replace_mode == 1 && times_replaced != 0) edit 15 src/editor/editsearch.h WEdit *edit; edit 23 src/editor/editsearch.h gboolean edit_search_init (WEdit * edit, const char *s); edit 24 src/editor/editsearch.h void edit_search_deinit (WEdit * edit); edit 31 src/editor/editsearch.h void edit_search_cmd (WEdit * edit, gboolean again); edit 32 src/editor/editsearch.h void edit_replace_cmd (WEdit * edit, gboolean again); edit 199 src/editor/editwidget.c edit_restore_size (WEdit *edit) edit 201 src/editor/editwidget.c Widget *w = WIDGET (edit); edit 203 src/editor/editwidget.c edit->drag_state = MCEDIT_DRAG_NONE; edit 205 src/editor/editwidget.c widget_set_size_rect (w, &edit->loc_prev); edit 218 src/editor/editwidget.c edit_window_move (WEdit *edit, long command) edit 220 src/editor/editwidget.c Widget *we = WIDGET (edit); edit 247 src/editor/editwidget.c edit->force |= REDRAW_PAGE; edit 260 src/editor/editwidget.c edit_window_resize (WEdit *edit, long command) edit 262 src/editor/editwidget.c Widget *we = WIDGET (edit); edit 289 src/editor/editwidget.c edit->force |= REDRAW_COMPLETELY; edit 376 src/editor/editwidget.c const WEdit *edit; edit 381 src/editor/editwidget.c edit = edit_find_editor (h); edit 382 src/editor/editwidget.c modified = edit->modified ? "(*) " : " "; edit 386 src/editor/editwidget.c if (edit->filename_vpath == NULL) edit 389 src/editor/editwidget.c filename = g_strdup (vfs_path_as_str (edit->filename_vpath)); edit 508 src/editor/editwidget.c edit_translate_key (WEdit *edit, long x_key, int *cmd, int *ch) edit 510 src/editor/editwidget.c Widget *w = WIDGET (edit); edit 526 src/editor/editwidget.c if (edit->charpoint >= MB_LEN_MAX) edit 528 src/editor/editwidget.c edit->charpoint = 0; edit 529 src/editor/editwidget.c edit->charbuf[edit->charpoint] = '\0'; edit 531 src/editor/editwidget.c if (edit->charpoint < MB_LEN_MAX) edit 533 src/editor/editwidget.c edit->charbuf[edit->charpoint++] = x_key; edit 534 src/editor/editwidget.c edit->charbuf[edit->charpoint] = '\0'; edit 545 src/editor/editwidget.c if (!edit->utf8) edit 557 src/editor/editwidget.c res = str_is_valid_char (edit->charbuf, edit->charpoint); edit 560 src/editor/editwidget.c edit->charpoint = 0; /* broken multibyte char, skip */ edit 564 src/editor/editwidget.c if (edit->utf8) edit 573 src/editor/editwidget.c edit->charbuf[edit->charpoint] = '\0'; edit 574 src/editor/editwidget.c edit->charpoint = 0; edit 575 src/editor/editwidget.c if (g_unichar_isprint (g_utf8_get_char (edit->charbuf))) edit 590 src/editor/editwidget.c if (g_unichar_isprint (g_utf8_get_char (edit->charbuf))) edit 592 src/editor/editwidget.c c = convert_from_utf_to_current (edit->charbuf); edit 593 src/editor/editwidget.c edit->charbuf[0] = '\0'; edit 594 src/editor/editwidget.c edit->charpoint = 0; edit 600 src/editor/editwidget.c edit->charbuf[0] = '\0'; edit 601 src/editor/editwidget.c edit->charpoint = 0; edit 672 src/editor/editwidget.c edit_set_buttonbar (WEdit *edit, WButtonBar *bb) edit 674 src/editor/editwidget.c Widget *w = WIDGET (edit); edit 691 src/editor/editwidget.c edit_total_update (WEdit *edit) edit 693 src/editor/editwidget.c edit_find_bracket (edit); edit 694 src/editor/editwidget.c edit->force |= REDRAW_COMPLETELY; edit 695 src/editor/editwidget.c edit_update_curs_row (edit); edit 696 src/editor/editwidget.c edit_update_screen (edit); edit 702 src/editor/editwidget.c edit_update_cursor (WEdit *edit, const mouse_event_t *event) edit 707 src/editor/editwidget.c x = event->x - (edit->fullscreen ? 0 : 1); edit 708 src/editor/editwidget.c y = event->y - (edit->fullscreen ? 0 : 1); edit 710 src/editor/editwidget.c if (edit->mark2 != -1 && event->msg == MSG_MOUSE_UP) edit 714 src/editor/editwidget.c edit_push_key_press (edit); edit 717 src/editor/editwidget.c edit->prev_col = x - edit->start_col - edit_options.line_state_width; edit 723 src/editor/editwidget.c edit_move_forward3 (edit, edit_buffer_get_current_bol (&edit->buffer), 0, edit 724 src/editor/editwidget.c edit_buffer_get_current_eol (&edit->buffer)); edit 728 src/editor/editwidget.c edit->over_col = x - line_len - edit->start_col - edit_options.line_state_width; edit 729 src/editor/editwidget.c edit->prev_col = line_len; edit 733 src/editor/editwidget.c edit->over_col = 0; edit 734 src/editor/editwidget.c edit->prev_col = x - edit_options.line_state_width - edit->start_col; edit 738 src/editor/editwidget.c if (y > edit->curs_row) edit 739 src/editor/editwidget.c edit_move_down (edit, y - edit->curs_row, FALSE); edit 740 src/editor/editwidget.c else if (y < edit->curs_row) edit 741 src/editor/editwidget.c edit_move_up (edit, edit->curs_row - y, FALSE); edit 743 src/editor/editwidget.c edit_move_to_prev_col (edit, edit_buffer_get_current_bol (&edit->buffer)); edit 747 src/editor/editwidget.c edit_mark_cmd (edit, TRUE); /* reset */ edit 748 src/editor/editwidget.c edit->highlight = 0; edit 753 src/editor/editwidget.c edit_mark_cmd (edit, FALSE); edit 1016 src/editor/editwidget.c WEdit *edit = EDIT (w); edit 1024 src/editor/editwidget.c edit_execute_cmd (edit, CK_Enter, -1); edit 1025 src/editor/editwidget.c edit_update_screen (edit); /* Paint the buttonbar over our possibly overlapping frame. */ edit 1047 src/editor/editwidget.c if (edit->drag_state == MCEDIT_DRAG_MOVE) edit 1050 src/editor/editwidget.c r->x = global_x - edit->drag_state_start; edit 1052 src/editor/editwidget.c else if (edit->drag_state == MCEDIT_DRAG_RESIZE) edit 1058 src/editor/editwidget.c edit->force |= REDRAW_COMPLETELY; /* Not really needed as WEdit's MSG_DRAW already does this. */ edit 1076 src/editor/editwidget.c WEdit *edit = EDIT (w); edit 1078 src/editor/editwidget.c int dx = edit->fullscreen ? 0 : 2; edit 1085 src/editor/editwidget.c if (edit->drag_state != MCEDIT_DRAG_NONE) edit 1106 src/editor/editwidget.c edit_update_curs_row (edit); edit 1107 src/editor/editwidget.c edit_update_curs_col (edit); edit 1109 src/editor/editwidget.c if (!edit->fullscreen) edit 1120 src/editor/editwidget.c edit_execute_cmd (edit, CK_WindowMove, -1); edit 1121 src/editor/editwidget.c edit_update_screen (edit); /* Paint the buttonbar over our possibly overlapping frame. */ edit 1122 src/editor/editwidget.c edit->drag_state_start = event->x; edit 1130 src/editor/editwidget.c edit_execute_cmd (edit, CK_WindowResize, -1); edit 1138 src/editor/editwidget.c edit_update_cursor (edit, event); edit 1139 src/editor/editwidget.c edit_total_update (edit); edit 1148 src/editor/editwidget.c edit_toggle_fullscreen (edit); edit 1149 src/editor/editwidget.c else if (!edit->fullscreen && event->count == GPM_DOUBLE) edit 1151 src/editor/editwidget.c edit_toggle_fullscreen (edit); edit 1156 src/editor/editwidget.c edit_mark_current_word_cmd (edit); edit 1157 src/editor/editwidget.c edit_total_update (edit); edit 1162 src/editor/editwidget.c edit_mark_current_line_cmd (edit); edit 1163 src/editor/editwidget.c edit_total_update (edit); edit 1168 src/editor/editwidget.c edit_update_cursor (edit, event); edit 1169 src/editor/editwidget.c edit_total_update (edit); edit 1173 src/editor/editwidget.c edit_move_up (edit, 2, TRUE); edit 1174 src/editor/editwidget.c edit_total_update (edit); edit 1178 src/editor/editwidget.c edit_move_down (edit, 2, TRUE); edit 1179 src/editor/editwidget.c edit_total_update (edit); edit 1343 src/editor/editwidget.c edit_save_size (WEdit *edit) edit 1345 src/editor/editwidget.c edit->loc_prev = WIDGET (edit)->rect; edit 1366 src/editor/editwidget.c WEdit *edit; edit 1369 src/editor/editwidget.c edit = edit_init (NULL, r, arg); edit 1370 src/editor/editwidget.c if (edit == NULL) edit 1373 src/editor/editwidget.c w = WIDGET (edit); edit 1378 src/editor/editwidget.c edit_set_buttonbar (edit, buttonbar_find (h)); edit 1394 src/editor/editwidget.c edit_handle_move_resize (WEdit *edit, long command) edit 1396 src/editor/editwidget.c Widget *w = WIDGET (edit); edit 1399 src/editor/editwidget.c if (edit->fullscreen) edit 1401 src/editor/editwidget.c edit->drag_state = MCEDIT_DRAG_NONE; edit 1406 src/editor/editwidget.c switch (edit->drag_state) edit 1413 src/editor/editwidget.c edit->drag_state = MCEDIT_DRAG_MOVE; edit 1414 src/editor/editwidget.c edit_save_size (edit); edit 1415 src/editor/editwidget.c edit_status (edit, TRUE); /* redraw frame and status */ edit 1421 src/editor/editwidget.c edit->drag_state_start = w->rect.cols / 2; edit 1425 src/editor/editwidget.c edit->drag_state = MCEDIT_DRAG_RESIZE; edit 1426 src/editor/editwidget.c edit_save_size (edit); edit 1427 src/editor/editwidget.c edit_status (edit, TRUE); /* redraw frame and status */ edit 1439 src/editor/editwidget.c edit->drag_state = MCEDIT_DRAG_RESIZE; edit 1446 src/editor/editwidget.c edit_window_move (edit, command); edit 1451 src/editor/editwidget.c edit->drag_state = MCEDIT_DRAG_NONE; edit 1452 src/editor/editwidget.c edit_status (edit, TRUE); /* redraw frame and status */ edit 1464 src/editor/editwidget.c edit->drag_state = MCEDIT_DRAG_MOVE; edit 1471 src/editor/editwidget.c edit_window_resize (edit, command); edit 1476 src/editor/editwidget.c edit->drag_state = MCEDIT_DRAG_NONE; edit 1477 src/editor/editwidget.c edit_status (edit, TRUE); /* redraw frame and status */ edit 1498 src/editor/editwidget.c w->mouse.forced_capture = (edit->drag_state != MCEDIT_DRAG_NONE); edit 1511 src/editor/editwidget.c edit_toggle_fullscreen (WEdit *edit) edit 1513 src/editor/editwidget.c Widget *w = WIDGET (edit); edit 1515 src/editor/editwidget.c edit->fullscreen = !edit->fullscreen; edit 1516 src/editor/editwidget.c edit->force = REDRAW_COMPLETELY; edit 1518 src/editor/editwidget.c if (!edit->fullscreen) edit 1520 src/editor/editwidget.c edit_restore_size (edit); edit 1528 src/editor/editwidget.c edit_save_size (edit); edit 1534 src/editor/editwidget.c edit->force |= REDRAW_PAGE; edit 1535 src/editor/editwidget.c edit_update_screen (edit); edit 315 src/editor/etags.c editcmd_dialog_select_definition_show (WEdit *edit, char *match_expr, GPtrArray *def_hash) edit 317 src/editor/etags.c const WRect *w = &CONST_WIDGET (edit)->rect; edit 328 src/editor/etags.c start_x = w->x + edit->curs_col + edit->start_col + EDIT_TEXT_HORIZONTAL_OFFSET + edit 329 src/editor/etags.c (edit->fullscreen ? 0 : 1) + edit_options.line_state_width; edit 330 src/editor/etags.c start_y = w->y + edit->curs_row + EDIT_TEXT_VERTICAL_OFFSET + (edit->fullscreen ? 0 : 1) + 1; edit 369 src/editor/etags.c if (!edit->modified) edit 376 src/editor/etags.c edit->force |= REDRAW_COMPLETELY; edit 385 src/editor/etags.c if (edit->filename_vpath != NULL && edit->filename_vpath->relative edit 386 src/editor/etags.c && edit->dir_vpath != NULL) edit 387 src/editor/etags.c vpath = vfs_path_append_vpath_new (edit->dir_vpath, edit->filename_vpath, NULL); edit 389 src/editor/etags.c vpath = vfs_path_clone (edit->filename_vpath); edit 392 src/editor/etags.c edit->start_line + edit->curs_row + 1); edit 396 src/editor/etags.c edit_reload_line (edit, &edit_history_moveto[edit_stack_iterator]); edit 409 src/editor/etags.c edit_get_match_keyword_cmd (WEdit *edit) edit 421 src/editor/etags.c if (!edit_buffer_find_word_start (&edit->buffer, &word_start, &word_len)) edit 427 src/editor/etags.c g_string_append_c (match_expr, edit_buffer_get_byte (&edit->buffer, word_start + i)); edit 455 src/editor/etags.c editcmd_dialog_select_definition_show (edit, match_expr->str, def_hash); edit 22 src/editor/etags.h void edit_get_match_keyword_cmd (WEdit * edit); edit 123 src/editor/format.c begin_paragraph (WEdit *edit, gboolean force, long *lines) edit 127 src/editor/format.c for (i = edit->buffer.curs_line - 1; i >= 0; i--) edit 128 src/editor/format.c if (edit_line_is_blank (edit, i) || edit 129 src/editor/format.c (force && bad_line_start (&edit->buffer, line_start (&edit->buffer, i)))) edit 135 src/editor/format.c *lines = edit->buffer.curs_line - i; edit 137 src/editor/format.c return edit_buffer_get_backward_offset (&edit->buffer, edit 138 src/editor/format.c edit_buffer_get_current_bol (&edit->buffer), *lines); edit 148 src/editor/format.c end_paragraph (WEdit *edit, gboolean force) edit 152 src/editor/format.c for (i = edit->buffer.curs_line + 1; i <= edit->buffer.lines; i++) edit 153 src/editor/format.c if (edit_line_is_blank (edit, i) || edit 154 src/editor/format.c (force && bad_line_start (&edit->buffer, line_start (&edit->buffer, i)))) edit 160 src/editor/format.c return edit_buffer_get_eol (&edit->buffer, edit 161 src/editor/format.c edit_buffer_get_forward_offset (&edit->buffer, edit 163 src/editor/format.c (&edit->buffer), edit 164 src/editor/format.c i - edit->buffer.curs_line, 0)); edit 361 src/editor/format.c replace_at (WEdit *edit, off_t q, int c) edit 363 src/editor/format.c edit_cursor_move (edit, q - edit->buffer.curs1); edit 364 src/editor/format.c edit_delete (edit, TRUE); edit 365 src/editor/format.c edit_insert_ahead (edit, c); edit 371 src/editor/format.c edit_indent_width (const WEdit *edit, off_t p) edit 376 src/editor/format.c while (strchr ("\t ", edit_buffer_get_byte (&edit->buffer, q)) != NULL edit 377 src/editor/format.c && q < edit->buffer.size - 1) edit 380 src/editor/format.c return (long) edit_move_forward3 (edit, p, 0, q); edit 386 src/editor/format.c edit_insert_indent (WEdit *edit, long indent) edit 391 src/editor/format.c edit_insert (edit, '\t'); edit 396 src/editor/format.c edit_insert (edit, ' '); edit 403 src/editor/format.c put_paragraph (WEdit *edit, unsigned char *t, off_t p, long indent, off_t size) edit 409 src/editor/format.c cursor = edit->buffer.curs1; edit 411 src/editor/format.c while (strchr ("\t ", edit_buffer_get_byte (&edit->buffer, p)) != NULL) edit 419 src/editor/format.c while (strchr ("\t ", edit_buffer_get_byte (&edit->buffer, p)) != NULL) edit 426 src/editor/format.c edit_cursor_move (edit, p - edit->buffer.curs1); edit 427 src/editor/format.c curs = edit->buffer.curs1; edit 428 src/editor/format.c edit_insert_indent (edit, indent); edit 430 src/editor/format.c cursor += edit->buffer.curs1 - p; edit 431 src/editor/format.c p = edit->buffer.curs1; edit 435 src/editor/format.c edit_cursor_move (edit, p - edit->buffer.curs1); edit 436 src/editor/format.c while (strchr ("\t ", edit_buffer_get_byte (&edit->buffer, p)) != NULL) edit 438 src/editor/format.c edit_delete (edit, TRUE); edit 439 src/editor/format.c if (cursor > edit->buffer.curs1) edit 442 src/editor/format.c p = edit->buffer.curs1; edit 446 src/editor/format.c c = edit_buffer_get_byte (&edit->buffer, p); edit 448 src/editor/format.c replace_at (edit, p, t[i]); edit 450 src/editor/format.c edit_cursor_move (edit, cursor - edit->buffer.curs1); /* restore cursor position */ edit 456 src/editor/format.c test_indent (const WEdit *edit, off_t p, off_t q) edit 460 src/editor/format.c indent = edit_indent_width (edit, p++); edit 465 src/editor/format.c if (edit_buffer_get_byte (&edit->buffer, p - 1) == '\n' edit 466 src/editor/format.c && indent != edit_indent_width (edit, p)) edit 476 src/editor/format.c format_paragraph (WEdit *edit, gboolean force) edit 488 src/editor/format.c if (edit_line_is_blank (edit, edit->buffer.curs_line)) edit 491 src/editor/format.c p = begin_paragraph (edit, force, &lines); edit 492 src/editor/format.c q = end_paragraph (edit, force); edit 493 src/editor/format.c indent = test_indent (edit, p, q); edit 495 src/editor/format.c t = get_paragraph (&edit->buffer, p, q, indent != 0); edit 528 src/editor/format.c utf8 = edit->utf8; edit 531 src/editor/format.c put_paragraph (edit, t2, p, indent, size); edit 535 src/editor/format.c edit_scroll_left (edit, -edit->start_col); edit 322 src/editor/spell.c spell_dialog_spell_suggest_show (WEdit *edit, const char *word, char **new_word, edit 351 src/editor/spell.c if ((edit->curs_row >= ypos - 1) && (edit->curs_row <= ypos + sug_dlg_h - 1)) edit 588 src/editor/spell.c edit_suggest_current_word (WEdit *edit) edit 597 src/editor/spell.c match_word = edit_buffer_get_word_from_pos (&edit->buffer, edit->buffer.curs1, &word_start, edit 626 src/editor/spell.c edit->found_start = word_start; edit 627 src/editor/spell.c edit->found_len = word_len; edit 628 src/editor/spell.c edit->force |= REDRAW_PAGE; edit 629 src/editor/spell.c edit_scroll_screen_over_cursor (edit); edit 630 src/editor/spell.c edit_render_keypress (edit); edit 633 src/editor/spell.c spell_dialog_spell_suggest_show (edit, match_word->str, &new_word, suggest); edit 634 src/editor/spell.c edit_cursor_move (edit, word_len - cut_len); edit 651 src/editor/spell.c edit_backspace (edit, TRUE); edit 655 src/editor/spell.c edit_insert (edit, new_word[i]); edit 664 src/editor/spell.c edit->found_start = 0; edit 665 src/editor/spell.c edit->found_len = 0; edit 677 src/editor/spell.c edit_spellcheck_file (WEdit *edit) edit 679 src/editor/spell.c if (edit->buffer.curs_line > 0) edit 681 src/editor/spell.c edit_cursor_move (edit, -edit->buffer.curs1); edit 682 src/editor/spell.c edit_move_to_prev_col (edit, 0); edit 683 src/editor/spell.c edit_update_curs_row (edit); edit 690 src/editor/spell.c c2 = edit_buffer_get_current_byte (&edit->buffer); edit 694 src/editor/spell.c if (edit->buffer.curs1 >= edit->buffer.size) edit 698 src/editor/spell.c edit_cursor_move (edit, 1); edit 699 src/editor/spell.c c2 = edit_buffer_get_current_byte (&edit->buffer); edit 703 src/editor/spell.c while (edit_suggest_current_word (edit) != B_CANCEL); edit 19 src/editor/spell.h int edit_suggest_current_word (WEdit * edit); edit 20 src/editor/spell.h void edit_spellcheck_file (WEdit * edit); edit 200 src/editor/syntax.c xx_tolower (const WEdit *edit, int c) edit 202 src/editor/syntax.c return edit->is_case_insensitive ? tolower (c) : c; edit 245 src/editor/syntax.c compare_word_to_right (const WEdit *edit, off_t i, const GString *text, edit 251 src/editor/syntax.c c = edit_buffer_get_byte (&edit->buffer, i - 1); edit 252 src/editor/syntax.c c = xx_tolower (edit, c); edit 265 src/editor/syntax.c c = edit_buffer_get_byte (&edit->buffer, i); edit 266 src/editor/syntax.c c = xx_tolower (edit, c); edit 282 src/editor/syntax.c c = edit_buffer_get_byte (&edit->buffer, i); edit 283 src/editor/syntax.c c = xx_tolower (edit, c); edit 314 src/editor/syntax.c c = edit_buffer_get_byte (&edit->buffer, i); edit 315 src/editor/syntax.c c = xx_tolower (edit, c); edit 334 src/editor/syntax.c c = edit_buffer_get_byte (&edit->buffer, i); edit 335 src/editor/syntax.c c = xx_tolower (edit, c); edit 345 src/editor/syntax.c c = edit_buffer_get_byte (&edit->buffer, i); edit 346 src/editor/syntax.c if (*p != xx_tolower (edit, c)) edit 354 src/editor/syntax.c c = edit_buffer_get_byte (&edit->buffer, i); edit 355 src/editor/syntax.c c = xx_tolower (edit, c); edit 362 src/editor/syntax.c xx_strchr (const WEdit *edit, const unsigned char *s, int char_byte) edit 364 src/editor/syntax.c while (*s >= '\005' && xx_tolower (edit, *s) != char_byte) edit 373 src/editor/syntax.c apply_rules_going_right (WEdit *edit, off_t i) edit 382 src/editor/syntax.c edit_syntax_rule_t _rule = edit->rule; edit 384 src/editor/syntax.c c = edit_buffer_get_byte (&edit->buffer, i); edit 385 src/editor/syntax.c c = xx_tolower (edit, c); edit 389 src/editor/syntax.c is_end = (edit->rule.end == i); edit 394 src/editor/syntax.c if (edit_buffer_get_byte (&edit->buffer, i - 1) == '\n') edit 408 src/editor/syntax.c r = CONTEXT_RULE (g_ptr_array_index (edit->rules, _rule.context)); edit 409 src/editor/syntax.c if (r->first_right == c && (edit->rule.border & RULE_ON_RIGHT_BORDER) == 0 edit 411 src/editor/syntax.c compare_word_to_right (edit, i, r->right, edit 422 src/editor/syntax.c else if (is_end && (edit->rule.border & RULE_ON_RIGHT_BORDER) != 0) edit 430 src/editor/syntax.c else if (is_end && (edit->rule.border & RULE_ON_LEFT_BORDER) != 0) edit 443 src/editor/syntax.c r = CONTEXT_RULE (g_ptr_array_index (edit->rules, _rule.context)); edit 447 src/editor/syntax.c while (*(p = xx_strchr (edit, (const unsigned char *) p + 1, c)) != '\0') edit 456 src/editor/syntax.c e = compare_word_to_right (edit, i, k->keyword, k->whole_word_chars_left, edit 465 src/editor/syntax.c r = CONTEXT_RULE (g_ptr_array_index (edit->rules, _rule._context)); edit 485 src/editor/syntax.c if ((edit->rule.border & RULE_ON_RIGHT_BORDER) != 0) edit 493 src/editor/syntax.c else if ((edit->rule.border & RULE_ON_LEFT_BORDER) != 0) edit 495 src/editor/syntax.c r = CONTEXT_RULE (g_ptr_array_index (edit->rules, _rule._context)); edit 508 src/editor/syntax.c e = compare_word_to_right (edit, i, r->right, r->whole_word_chars_left, edit 527 src/editor/syntax.c for (count = 1; count < edit->rules->len; count++) edit 529 src/editor/syntax.c r = CONTEXT_RULE (g_ptr_array_index (edit->rules, count)); edit 535 src/editor/syntax.c e = compare_word_to_right (edit, i, r->left, r->whole_word_chars_left, edit 559 src/editor/syntax.c r = CONTEXT_RULE (g_ptr_array_index (edit->rules, _rule.context)); edit 562 src/editor/syntax.c while (*(p = xx_strchr (edit, (const unsigned char *) p + 1, c)) != '\0') edit 572 src/editor/syntax.c e = compare_word_to_right (edit, i, k->keyword, k->whole_word_chars_left, edit 583 src/editor/syntax.c edit->rule = _rule; edit 589 src/editor/syntax.c edit_get_rule (WEdit *edit, off_t byte_index) edit 593 src/editor/syntax.c if (byte_index > edit->last_get_rule) edit 595 src/editor/syntax.c for (i = edit->last_get_rule + 1; i <= byte_index; i++) edit 599 src/editor/syntax.c apply_rules_going_right (edit, i); edit 601 src/editor/syntax.c if (edit->syntax_marker != NULL) edit 602 src/editor/syntax.c d += ((syntax_marker_t *) edit->syntax_marker->data)->offset; edit 610 src/editor/syntax.c s->rule = edit->rule; edit 611 src/editor/syntax.c edit->syntax_marker = g_slist_prepend (edit->syntax_marker, s); edit 615 src/editor/syntax.c else if (byte_index < edit->last_get_rule) edit 621 src/editor/syntax.c if (edit->syntax_marker == NULL) edit 623 src/editor/syntax.c memset (&edit->rule, 0, sizeof (edit->rule)); edit 625 src/editor/syntax.c apply_rules_going_right (edit, i); edit 629 src/editor/syntax.c s = (syntax_marker_t *) edit->syntax_marker->data; edit 633 src/editor/syntax.c edit->rule = s->rule; edit 635 src/editor/syntax.c apply_rules_going_right (edit, i); edit 640 src/editor/syntax.c edit->syntax_marker = g_slist_delete_link (edit->syntax_marker, edit->syntax_marker); edit 643 src/editor/syntax.c edit->last_get_rule = byte_index; edit 649 src/editor/syntax.c translate_rule_to_color (const WEdit *edit, const edit_syntax_rule_t *rule) edit 654 src/editor/syntax.c r = CONTEXT_RULE (g_ptr_array_index (edit->rules, rule->context)); edit 920 src/editor/syntax.c xx_lowerize_line (WEdit *edit, char *line, size_t len) edit 922 src/editor/syntax.c if (edit->is_case_insensitive) edit 935 src/editor/syntax.c edit_read_syntax_rules (WEdit *edit, FILE *f, char **args, int args_size) edit 949 src/editor/syntax.c edit->is_case_insensitive = FALSE; edit 954 src/editor/syntax.c edit->rules = g_ptr_array_new_with_free_func (context_rule_free); edit 956 src/editor/syntax.c if (edit->defines == NULL) edit 957 src/editor/syntax.c edit->defines = g_tree_new ((GCompareFunc) strcmp); edit 985 src/editor/syntax.c xx_lowerize_line (edit, l, len); edit 1013 src/editor/syntax.c edit->is_case_insensitive = TRUE; edit 1041 src/editor/syntax.c if (edit->rules->len == 0) edit 1049 src/editor/syntax.c g_ptr_array_add (edit->rules, c); edit 1057 src/editor/syntax.c g_ptr_array_add (edit->rules, c); edit 1103 src/editor/syntax.c subst_defines (edit->defines, a, &args[ARGS_LEN]); edit 1137 src/editor/syntax.c last_rule = CONTEXT_RULE (g_ptr_array_index (edit->rules, edit->rules->len - 1)); edit 1167 src/editor/syntax.c subst_defines (edit->defines, a, &args[ARGS_LEN]); edit 1201 src/editor/syntax.c argv = g_tree_lookup (edit->defines, key); edit 1208 src/editor/syntax.c g_tree_insert (edit->defines, key, argv); edit 1222 src/editor/syntax.c if (edit->rules->len == 0) edit 1224 src/editor/syntax.c g_ptr_array_free (edit->rules, TRUE); edit 1225 src/editor/syntax.c edit->rules = NULL; edit 1233 src/editor/syntax.c if (edit->rules == NULL) edit 1239 src/editor/syntax.c for (i = 0; i < edit->rules->len; i++) edit 1244 src/editor/syntax.c c = CONTEXT_RULE (g_ptr_array_index (edit->rules, i)); edit 1268 src/editor/syntax.c edit_read_syntax_file (WEdit *edit, GPtrArray *pnames, const char *syntax_file, edit 1336 src/editor/syntax.c else if (editor_file != NULL && edit != NULL) edit 1355 src/editor/syntax.c line_error = edit_read_syntax_rules (edit, g ? g : f, args, ARGS_LEN - 1); edit 1365 src/editor/syntax.c g_free (edit->syntax_type); edit 1366 src/editor/syntax.c edit->syntax_type = g_strdup (syntax_type); edit 1368 src/editor/syntax.c if (g == NULL && edit->rules->len == 1) edit 1372 src/editor/syntax.c r0 = CONTEXT_RULE (g_ptr_array_index (edit->rules, 0)); edit 1375 src/editor/syntax.c edit_free_syntax_rules (edit); edit 1397 src/editor/syntax.c get_first_editor_line (WEdit *edit) edit 1403 src/editor/syntax.c if (edit != NULL) edit 1409 src/editor/syntax.c s[i] = edit_buffer_get_byte (&edit->buffer, i); edit 1462 src/editor/syntax.c edit_get_syntax_color (WEdit *edit, off_t byte_index) edit 1467 src/editor/syntax.c if (edit_options.syntax_highlighting && edit->rules != NULL && byte_index < edit->buffer.size) edit 1469 src/editor/syntax.c edit_get_rule (edit, byte_index); edit 1470 src/editor/syntax.c return translate_rule_to_color (edit, &edit->rule); edit 1479 src/editor/syntax.c edit_free_syntax_rules (WEdit *edit) edit 1481 src/editor/syntax.c if (edit == NULL) edit 1484 src/editor/syntax.c if (edit->defines != NULL) edit 1485 src/editor/syntax.c destroy_defines (&edit->defines); edit 1487 src/editor/syntax.c if (edit->rules == NULL) edit 1490 src/editor/syntax.c edit_get_rule (edit, -1); edit 1491 src/editor/syntax.c MC_PTR_FREE (edit->syntax_type); edit 1493 src/editor/syntax.c g_ptr_array_free (edit->rules, TRUE); edit 1494 src/editor/syntax.c edit->rules = NULL; edit 1495 src/editor/syntax.c g_clear_slist (&edit->syntax_marker, g_free); edit 1507 src/editor/syntax.c edit_load_syntax (WEdit *edit, GPtrArray *pnames, const char *type) edit 1515 src/editor/syntax.c if (edit != NULL) edit 1520 src/editor/syntax.c edit_free_syntax_rules (edit); edit 1521 src/editor/syntax.c edit->syntax_type = saved_type; /* restore edit->syntax_type */ edit 1530 src/editor/syntax.c if (edit != NULL && edit->filename_vpath == NULL) edit 1534 src/editor/syntax.c if (edit != NULL) edit 1535 src/editor/syntax.c r = edit_read_syntax_file (edit, pnames, f, vfs_path_as_str (edit->filename_vpath), edit 1536 src/editor/syntax.c get_first_editor_line (edit), edit 1537 src/editor/syntax.c auto_syntax ? NULL : edit->syntax_type); edit 1542 src/editor/syntax.c edit_free_syntax_rules (edit); edit 1548 src/editor/syntax.c edit_free_syntax_rules (edit); edit 1561 src/editor/syntax.c edit_get_syntax_type (const WEdit *edit) edit 1563 src/editor/syntax.c return edit->syntax_type; edit 1569 src/editor/syntax.c edit_syntax_dialog (WEdit *edit) edit 1582 src/editor/syntax.c syntax = exec_edit_syntax_dialog (names, edit->syntax_type); edit 1589 src/editor/syntax.c current_syntax = g_strdup (edit->syntax_type); edit 1602 src/editor/syntax.c g_free (edit->syntax_type); edit 1603 src/editor/syntax.c edit->syntax_type = g_strdup (g_ptr_array_index (names, syntax - N_DFLT_ENTRIES)); edit 1608 src/editor/syntax.c (current_syntax != NULL && edit->syntax_type != NULL && edit 1609 src/editor/syntax.c strcmp (current_syntax, edit->syntax_type) != 0)) edit 1610 src/editor/syntax.c edit_load_syntax (edit, NULL, edit->syntax_type); edit 1453 src/filemanager/find.c find_do_view_edit (gboolean unparsed_view, gboolean edit, char *dir, char *file, off_t search_start, edit 1472 src/filemanager/find.c if (edit) edit 1483 src/filemanager/find.c view_edit_currently_selected_file (gboolean unparsed_view, gboolean edit) edit 1493 src/filemanager/find.c find_do_view_edit (unparsed_view, edit, location->dir, text, location->start, location->end); edit 103 tests/src/editor/edit_complete_word_cmd.c edit_completion_dialog_show (const WEdit *edit, GQueue *compl, int max_width) edit 106 tests/src/editor/edit_complete_word_cmd.c edit_completion_dialog_show__edit = edit;