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 121 src/editor/edit-impl.h void edit_user_menu (WEdit * edit, const char *menu_file, int selected_entry); edit 124 src/editor/edit-impl.h off_t edit_move_forward3 (const WEdit * edit, off_t current, long cols, off_t upto); edit 125 src/editor/edit-impl.h void edit_scroll_screen_over_cursor (WEdit * edit); edit 126 src/editor/edit-impl.h void edit_render_keypress (WEdit * edit); edit 127 src/editor/edit-impl.h void edit_scroll_upward (WEdit * edit, long i); edit 128 src/editor/edit-impl.h void edit_scroll_downward (WEdit * edit, long i); edit 129 src/editor/edit-impl.h void edit_scroll_right (WEdit * edit, long i); edit 130 src/editor/edit-impl.h void edit_scroll_left (WEdit * edit, long i); edit 131 src/editor/edit-impl.h void edit_move_up (WEdit * edit, long i, gboolean do_scroll); edit 132 src/editor/edit-impl.h void edit_move_down (WEdit * edit, long i, gboolean do_scroll); edit 133 src/editor/edit-impl.h void edit_move_to_prev_col (WEdit * edit, off_t p); edit 134 src/editor/edit-impl.h long edit_get_col (const WEdit * edit); edit 135 src/editor/edit-impl.h void edit_update_curs_row (WEdit * edit); edit 136 src/editor/edit-impl.h void edit_update_curs_col (WEdit * edit); edit 137 src/editor/edit-impl.h void edit_find_bracket (WEdit * edit); edit 138 src/editor/edit-impl.h gboolean edit_reload_line (WEdit * edit, const edit_arg_t * arg); edit 139 src/editor/edit-impl.h void edit_set_codeset (WEdit * edit); edit 141 src/editor/edit-impl.h void edit_block_copy_cmd (WEdit * edit); edit 142 src/editor/edit-impl.h void edit_block_move_cmd (WEdit * edit); edit 143 src/editor/edit-impl.h gboolean edit_block_delete_cmd (WEdit * edit); edit 144 src/editor/edit-impl.h void edit_delete_line (WEdit * edit); edit 146 src/editor/edit-impl.h int edit_delete (WEdit * edit, gboolean byte_delete); edit 147 src/editor/edit-impl.h int edit_backspace (WEdit * edit, gboolean byte_delete); edit 148 src/editor/edit-impl.h void edit_insert (WEdit * edit, int c); edit 149 src/editor/edit-impl.h void edit_insert_over (WEdit * edit); edit 150 src/editor/edit-impl.h void edit_cursor_move (WEdit * edit, off_t increment); edit 151 src/editor/edit-impl.h void edit_push_undo_action (WEdit * edit, long c); edit 152 src/editor/edit-impl.h void edit_push_redo_action (WEdit * edit, long c); edit 153 src/editor/edit-impl.h void edit_push_key_press (WEdit * edit); edit 154 src/editor/edit-impl.h void edit_insert_ahead (WEdit * edit, int c); edit 155 src/editor/edit-impl.h off_t edit_write_stream (WEdit * edit, FILE * f); edit 158 src/editor/edit-impl.h gboolean edit_save_confirm_cmd (WEdit * edit); edit 159 src/editor/edit-impl.h gboolean edit_save_as_cmd (WEdit * edit); edit 160 src/editor/edit-impl.h WEdit *edit_init (WEdit * edit, const WRect * r, const edit_arg_t * arg); edit 161 src/editor/edit-impl.h gboolean edit_clean (WEdit * edit); edit 162 src/editor/edit-impl.h gboolean edit_ok_to_exit (WEdit * edit); edit 168 src/editor/edit-impl.h gboolean edit_close_cmd (WEdit * edit); edit 169 src/editor/edit-impl.h void edit_mark_cmd (WEdit * edit, gboolean unmark); edit 170 src/editor/edit-impl.h void edit_mark_current_word_cmd (WEdit * edit); edit 171 src/editor/edit-impl.h void edit_mark_current_line_cmd (WEdit * edit); edit 172 src/editor/edit-impl.h void edit_set_markers (WEdit * edit, off_t m1, off_t m2, long c1, long c2); edit 173 src/editor/edit-impl.h void edit_push_markers (WEdit * edit); edit 175 src/editor/edit-impl.h gboolean edit_save_block (WEdit * edit, const char *filename, off_t start, off_t finish); edit 176 src/editor/edit-impl.h gboolean edit_save_block_cmd (WEdit * edit); edit 177 src/editor/edit-impl.h gboolean edit_insert_file_cmd (WEdit * edit); edit 179 src/editor/edit-impl.h off_t edit_insert_file (WEdit * edit, const vfs_path_t * filename_vpath); edit 180 src/editor/edit-impl.h gboolean edit_load_back_cmd (WEdit * edit); edit 181 src/editor/edit-impl.h gboolean edit_load_forward_cmd (WEdit * edit); edit 182 src/editor/edit-impl.h void edit_block_process_cmd (WEdit * edit, int macro_number); edit 188 src/editor/edit-impl.h void edit_date_cmd (WEdit * edit); edit 189 src/editor/edit-impl.h void edit_goto_cmd (WEdit * edit); edit 190 src/editor/edit-impl.h gboolean eval_marks (WEdit * edit, off_t * start_mark, off_t * end_mark); edit 191 src/editor/edit-impl.h void edit_status (WEdit * edit, gboolean active); edit 192 src/editor/edit-impl.h void edit_execute_key_command (WEdit * edit, long command, int char_for_insertion); edit 193 src/editor/edit-impl.h void edit_update_screen (WEdit * edit); edit 194 src/editor/edit-impl.h void edit_save_size (WEdit * edit); edit 195 src/editor/edit-impl.h gboolean edit_handle_move_resize (WEdit * edit, long command); edit 196 src/editor/edit-impl.h void edit_toggle_fullscreen (WEdit * edit); edit 199 src/editor/edit-impl.h void edit_word_wrap (WEdit * edit); edit 200 src/editor/edit-impl.h int edit_sort_cmd (WEdit * edit); edit 201 src/editor/edit-impl.h int edit_ext_cmd (WEdit * edit); edit 203 src/editor/edit-impl.h gboolean edit_copy_to_X_buf_cmd (WEdit * edit); edit 204 src/editor/edit-impl.h gboolean edit_cut_to_X_buf_cmd (WEdit * edit); edit 205 src/editor/edit-impl.h gboolean edit_paste_from_X_buf_cmd (WEdit * edit); edit 207 src/editor/edit-impl.h void edit_select_codepage_cmd (WEdit * edit); edit 208 src/editor/edit-impl.h void edit_insert_literal_cmd (WEdit * edit); edit 210 src/editor/edit-impl.h void edit_paste_from_history (WEdit * edit); edit 212 src/editor/edit-impl.h void edit_set_filename (WEdit * edit, const vfs_path_t * name_vpath); edit 214 src/editor/edit-impl.h MC_MOCKABLE void edit_load_syntax (WEdit * edit, GPtrArray * pnames, const char *type); edit 215 src/editor/edit-impl.h void edit_free_syntax_rules (WEdit * edit); edit 216 src/editor/edit-impl.h MC_MOCKABLE int edit_get_syntax_color (WEdit * edit, off_t byte_index); edit 217 src/editor/edit-impl.h void edit_syntax_dialog (WEdit * edit); edit 219 src/editor/edit-impl.h void book_mark_insert (WEdit * edit, long line, int c); edit 220 src/editor/edit-impl.h gboolean book_mark_query_color (WEdit * edit, long line, int c); edit 221 src/editor/edit-impl.h struct edit_book_mark_t *book_mark_find (WEdit * edit, long line); edit 222 src/editor/edit-impl.h gboolean book_mark_clear (WEdit * edit, long line, int c); edit 223 src/editor/edit-impl.h void book_mark_flush (WEdit * edit, int c); edit 224 src/editor/edit-impl.h void book_mark_inc (WEdit * edit, long line); edit 225 src/editor/edit-impl.h void book_mark_dec (WEdit * edit, long line); edit 226 src/editor/edit-impl.h void book_mark_serialize (WEdit * edit, int color); edit 227 src/editor/edit-impl.h void book_mark_restore (WEdit * edit, int color); edit 229 src/editor/edit-impl.h gboolean edit_line_is_blank (WEdit * edit, long line); edit 232 src/editor/edit-impl.h void edit_mail_dialog (WEdit * edit); edit 233 src/editor/edit-impl.h void format_paragraph (WEdit * edit, gboolean force); edit 236 src/editor/edit-impl.h void edit_execute_cmd (WEdit * edit, long command, int char_for_insertion); edit 250 src/editor/edit-impl.h edit_reload (WEdit *edit, const vfs_path_t *filename_vpath) edit 256 src/editor/edit-impl.h return edit_reload_line (edit, &arg); edit 275 src/editor/edit.c edit_insert_stream (WEdit *edit, FILE *f) edit 281 src/editor/edit.c edit_insert (edit, c); edit 297 src/editor/edit.c check_file_access (WEdit *edit, const vfs_path_t *filename_vpath, struct stat *st) edit 321 src/editor/edit.c edit->delete_file = 1; edit 356 src/editor/edit.c edit->delete_file = 0; edit 399 src/editor/edit.c edit_load_file (WEdit *edit) edit 404 src/editor/edit.c if (edit_find_filter (edit->filename_vpath) >= 0) edit 411 src/editor/edit.c if (edit->filename_vpath != NULL) edit 417 src/editor/edit.c if (!vfs_file_is_local (edit->filename_vpath)) edit 421 src/editor/edit.c if (!check_file_access (edit, edit->filename_vpath, &edit->stat1)) edit 423 src/editor/edit.c edit_clean (edit); edit 435 src/editor/edit.c edit_buffer_init (&edit->buffer, edit->stat1.st_size); edit 437 src/editor/edit.c if (!edit_load_file_fast (&edit->buffer, edit->filename_vpath)) edit 439 src/editor/edit.c edit_clean (edit); edit 445 src/editor/edit.c edit_buffer_init (&edit->buffer, 0); edit 447 src/editor/edit.c if (edit->filename_vpath != NULL edit 448 src/editor/edit.c && *(vfs_path_get_by_index (edit->filename_vpath, 0)->path) != '\0') edit 450 src/editor/edit.c edit->undo_stack_disable = 1; edit 451 src/editor/edit.c if (edit_insert_file (edit, edit->filename_vpath) < 0) edit 453 src/editor/edit.c edit_clean (edit); edit 456 src/editor/edit.c edit->undo_stack_disable = 0; edit 459 src/editor/edit.c edit->lb = LB_ASIS; edit 473 src/editor/edit.c edit_load_position (WEdit *edit, gboolean load_position) edit 479 src/editor/edit.c if (edit->filename_vpath == NULL edit 480 src/editor/edit.c || *(vfs_path_get_by_index (edit->filename_vpath, 0)->path) == '\0') edit 483 src/editor/edit.c load_file_position (edit->filename_vpath, &line, &column, &offset, &edit->serialized_bookmarks); edit 485 src/editor/edit.c book_mark_restore (edit, BOOK_MARK_COLOR); edit 492 src/editor/edit.c edit_move_to_line (edit, line - 1); edit 493 src/editor/edit.c edit->prev_col = column; edit 497 src/editor/edit.c edit_cursor_move (edit, offset); edit 498 src/editor/edit.c line = edit->buffer.curs_line; edit 499 src/editor/edit.c edit->search_start = edit->buffer.curs1; edit 502 src/editor/edit.c b = edit_buffer_get_current_bol (&edit->buffer); edit 503 src/editor/edit.c edit_move_to_prev_col (edit, b); edit 504 src/editor/edit.c edit_move_display (edit, line - (WIDGET (edit)->rect.lines / 2)); edit 511 src/editor/edit.c edit_save_position (WEdit *edit) edit 513 src/editor/edit.c if (edit->filename_vpath == NULL edit 514 src/editor/edit.c || *(vfs_path_get_by_index (edit->filename_vpath, 0)->path) == '\0') edit 517 src/editor/edit.c book_mark_serialize (edit, BOOK_MARK_COLOR); edit 518 src/editor/edit.c save_file_position (edit->filename_vpath, edit->buffer.curs_line + 1, edit->curs_col, edit 519 src/editor/edit.c edit->buffer.curs1, edit->serialized_bookmarks); edit 520 src/editor/edit.c edit->serialized_bookmarks = NULL; edit 527 src/editor/edit.c edit_purge_widget (WEdit *edit) edit 530 src/editor/edit.c char *start = (char *) edit + sizeof (Widget); edit 542 src/editor/edit.c edit_pop_undo_action (WEdit *edit) edit 545 src/editor/edit.c unsigned long sp = edit->undo_stack_pointer; edit 547 src/editor/edit.c if (sp == edit->undo_stack_bottom) edit 550 src/editor/edit.c sp = (sp - 1) & edit->undo_stack_size_mask; edit 551 src/editor/edit.c c = edit->undo_stack[sp]; edit 555 src/editor/edit.c edit->undo_stack_pointer = (edit->undo_stack_pointer - 1) & edit->undo_stack_size_mask; edit 559 src/editor/edit.c if (sp == edit->undo_stack_bottom) edit 562 src/editor/edit.c c = edit->undo_stack[(sp - 1) & edit->undo_stack_size_mask]; edit 563 src/editor/edit.c if (edit->undo_stack[sp] == -2) edit 566 src/editor/edit.c edit->undo_stack_pointer = sp; edit 569 src/editor/edit.c edit->undo_stack[sp]++; edit 577 src/editor/edit.c edit_pop_redo_action (WEdit *edit) edit 580 src/editor/edit.c unsigned long sp = edit->redo_stack_pointer; edit 582 src/editor/edit.c if (sp == edit->redo_stack_bottom) edit 585 src/editor/edit.c sp = (sp - 1) & edit->redo_stack_size_mask; edit 586 src/editor/edit.c c = edit->redo_stack[sp]; edit 589 src/editor/edit.c edit->redo_stack_pointer = (edit->redo_stack_pointer - 1) & edit->redo_stack_size_mask; edit 593 src/editor/edit.c if (sp == edit->redo_stack_bottom) edit 596 src/editor/edit.c c = edit->redo_stack[(sp - 1) & edit->redo_stack_size_mask]; edit 597 src/editor/edit.c if (edit->redo_stack[sp] == -2) edit 598 src/editor/edit.c edit->redo_stack_pointer = sp; edit 600 src/editor/edit.c edit->redo_stack[sp]++; edit 608 src/editor/edit.c get_prev_undo_action (WEdit *edit) edit 611 src/editor/edit.c unsigned long sp = edit->undo_stack_pointer; edit 613 src/editor/edit.c if (sp == edit->undo_stack_bottom) edit 616 src/editor/edit.c sp = (sp - 1) & edit->undo_stack_size_mask; edit 617 src/editor/edit.c c = edit->undo_stack[sp]; edit 621 src/editor/edit.c if (sp == edit->undo_stack_bottom) edit 624 src/editor/edit.c c = edit->undo_stack[(sp - 1) & edit->undo_stack_size_mask]; edit 632 src/editor/edit.c edit_modification (WEdit *edit) edit 634 src/editor/edit.c edit->caches_valid = FALSE; edit 637 src/editor/edit.c if (edit->modified == 0 && edit->delete_file == 0) edit 638 src/editor/edit.c edit->locked = lock_file (edit->filename_vpath); edit 639 src/editor/edit.c edit->modified = 1; edit 695 src/editor/edit.c edit_find_line (WEdit *edit, long line) edit 701 src/editor/edit.c if (!edit->caches_valid) edit 703 src/editor/edit.c memset (edit->line_numbers, 0, sizeof (edit->line_numbers)); edit 704 src/editor/edit.c memset (edit->line_offsets, 0, sizeof (edit->line_offsets)); edit 706 src/editor/edit.c edit->line_numbers[1] = edit->buffer.curs_line; edit 707 src/editor/edit.c edit->line_offsets[1] = edit_buffer_get_current_bol (&edit->buffer); edit 708 src/editor/edit.c edit->line_numbers[2] = edit->buffer.lines; edit 709 src/editor/edit.c edit->line_offsets[2] = edit_buffer_get_bol (&edit->buffer, edit->buffer.size); edit 710 src/editor/edit.c edit->caches_valid = TRUE; edit 712 src/editor/edit.c if (line >= edit->buffer.lines) edit 713 src/editor/edit.c return edit->line_offsets[2]; edit 721 src/editor/edit.c n = labs (edit->line_numbers[i] - line); edit 729 src/editor/edit.c return edit->line_offsets[j]; /* know the offset exactly */ edit 734 src/editor/edit.c if (line > edit->line_numbers[j]) edit 735 src/editor/edit.c edit->line_offsets[i] = edit 736 src/editor/edit.c edit_buffer_get_forward_offset (&edit->buffer, edit->line_offsets[j], edit 737 src/editor/edit.c line - edit->line_numbers[j], 0); edit 739 src/editor/edit.c edit->line_offsets[i] = edit 740 src/editor/edit.c edit_buffer_get_backward_offset (&edit->buffer, edit->line_offsets[j], edit 741 src/editor/edit.c edit->line_numbers[j] - line); edit 742 src/editor/edit.c edit->line_numbers[i] = line; edit 743 src/editor/edit.c return edit->line_offsets[i]; edit 751 src/editor/edit.c edit_move_up_paragraph (WEdit *edit, gboolean do_scroll) edit 755 src/editor/edit.c if (edit->buffer.curs_line > 1) edit 757 src/editor/edit.c if (!edit_line_is_blank (edit, edit->buffer.curs_line)) edit 759 src/editor/edit.c for (i = edit->buffer.curs_line - 1; i != 0; i--) edit 760 src/editor/edit.c if (edit_line_is_blank (edit, i)) edit 763 src/editor/edit.c else if (edit_line_is_blank (edit, edit->buffer.curs_line - 1)) edit 765 src/editor/edit.c for (i = edit->buffer.curs_line - 1; i != 0; i--) edit 766 src/editor/edit.c if (!edit_line_is_blank (edit, i)) edit 774 src/editor/edit.c for (i = edit->buffer.curs_line - 1; i != 0; i--) edit 775 src/editor/edit.c if (edit_line_is_blank (edit, i)) edit 780 src/editor/edit.c edit_move_up (edit, edit->buffer.curs_line - i, do_scroll); edit 788 src/editor/edit.c edit_move_down_paragraph (WEdit *edit, gboolean do_scroll) edit 792 src/editor/edit.c if (edit->buffer.curs_line >= edit->buffer.lines - 1) edit 793 src/editor/edit.c i = edit->buffer.lines; edit 794 src/editor/edit.c else if (!edit_line_is_blank (edit, edit->buffer.curs_line)) edit 796 src/editor/edit.c for (i = edit->buffer.curs_line + 1; i != 0; i++) edit 797 src/editor/edit.c if (edit_line_is_blank (edit, i) || i >= edit->buffer.lines) edit 800 src/editor/edit.c else if (edit_line_is_blank (edit, edit->buffer.curs_line + 1)) edit 802 src/editor/edit.c for (i = edit->buffer.curs_line + 1; i != 0; i++) edit 803 src/editor/edit.c if (!edit_line_is_blank (edit, i) || i > edit->buffer.lines) edit 811 src/editor/edit.c for (i = edit->buffer.curs_line + 1; i != 0; i++) edit 812 src/editor/edit.c if (edit_line_is_blank (edit, i) || i >= edit->buffer.lines) edit 815 src/editor/edit.c edit_move_down (edit, i - edit->buffer.curs_line, do_scroll); edit 821 src/editor/edit.c edit_begin_page (WEdit *edit) edit 823 src/editor/edit.c edit_update_curs_row (edit); edit 824 src/editor/edit.c edit_move_up (edit, edit->curs_row, FALSE); edit 830 src/editor/edit.c edit_end_page (WEdit *edit) edit 832 src/editor/edit.c edit_update_curs_row (edit); edit 833 src/editor/edit.c edit_move_down (edit, WIDGET (edit)->rect.lines - edit->curs_row - 1, FALSE); edit 841 src/editor/edit.c edit_move_to_top (WEdit *edit) edit 843 src/editor/edit.c if (edit->buffer.curs_line != 0) edit 845 src/editor/edit.c edit_cursor_move (edit, -edit->buffer.curs1); edit 846 src/editor/edit.c edit_move_to_prev_col (edit, 0); edit 847 src/editor/edit.c edit->force |= REDRAW_PAGE; edit 848 src/editor/edit.c edit->search_start = 0; edit 849 src/editor/edit.c edit_update_curs_row (edit); edit 857 src/editor/edit.c edit_move_to_bottom (WEdit *edit) edit 859 src/editor/edit.c if (edit->buffer.curs_line < edit->buffer.lines) edit 861 src/editor/edit.c edit_move_down (edit, edit->buffer.lines - edit->curs_row, FALSE); edit 862 src/editor/edit.c edit->start_display = edit->buffer.size; edit 863 src/editor/edit.c edit->start_line = edit->buffer.lines; edit 864 src/editor/edit.c edit_scroll_upward (edit, WIDGET (edit)->rect.lines - 1); edit 865 src/editor/edit.c edit->force |= REDRAW_PAGE; edit 873 src/editor/edit.c edit_cursor_to_bol (WEdit *edit) edit 877 src/editor/edit.c b = edit_buffer_get_current_bol (&edit->buffer); edit 878 src/editor/edit.c edit_cursor_move (edit, b - edit->buffer.curs1); edit 879 src/editor/edit.c edit->search_start = edit->buffer.curs1; edit 880 src/editor/edit.c edit->prev_col = edit_get_col (edit); edit 881 src/editor/edit.c edit->over_col = 0; edit 888 src/editor/edit.c edit_cursor_to_eol (WEdit *edit) edit 892 src/editor/edit.c b = edit_buffer_get_current_eol (&edit->buffer); edit 893 src/editor/edit.c edit_cursor_move (edit, b - edit->buffer.curs1); edit 894 src/editor/edit.c edit->search_start = edit->buffer.curs1; edit 895 src/editor/edit.c edit->prev_col = edit_get_col (edit); edit 896 src/editor/edit.c edit->over_col = 0; edit 946 src/editor/edit.c edit_left_word_move (WEdit *edit, int s) edit 952 src/editor/edit.c if (edit->column_highlight edit 953 src/editor/edit.c && edit->mark1 != edit->mark2 edit 954 src/editor/edit.c && edit->over_col == 0 edit 955 src/editor/edit.c && edit->buffer.curs1 == edit_buffer_get_current_bol (&edit->buffer)) edit 957 src/editor/edit.c edit_cursor_move (edit, -1); edit 958 src/editor/edit.c if (edit->buffer.curs1 == 0) edit 960 src/editor/edit.c c1 = edit_buffer_get_previous_byte (&edit->buffer); edit 963 src/editor/edit.c c2 = edit_buffer_get_current_byte (&edit->buffer); edit 978 src/editor/edit.c edit_left_word_move_cmd (WEdit *edit) edit 980 src/editor/edit.c edit_left_word_move (edit, 0); edit 981 src/editor/edit.c edit->force |= REDRAW_PAGE; edit 987 src/editor/edit.c edit_right_word_move (WEdit *edit, int s) edit 993 src/editor/edit.c if (edit->column_highlight edit 994 src/editor/edit.c && edit->mark1 != edit->mark2 edit 995 src/editor/edit.c && edit->over_col == 0 edit 996 src/editor/edit.c && edit->buffer.curs1 == edit_buffer_get_current_eol (&edit->buffer)) edit 998 src/editor/edit.c edit_cursor_move (edit, 1); edit 999 src/editor/edit.c if (edit->buffer.curs1 >= edit->buffer.size) edit 1001 src/editor/edit.c c1 = edit_buffer_get_previous_byte (&edit->buffer); edit 1004 src/editor/edit.c c2 = edit_buffer_get_current_byte (&edit->buffer); edit 1019 src/editor/edit.c edit_right_word_move_cmd (WEdit *edit) edit 1021 src/editor/edit.c edit_right_word_move (edit, 0); edit 1022 src/editor/edit.c edit->force |= REDRAW_PAGE; edit 1028 src/editor/edit.c edit_right_char_move_cmd (WEdit *edit) edit 1034 src/editor/edit.c if (edit->utf8) edit 1036 src/editor/edit.c c = edit_buffer_get_utf (&edit->buffer, edit->buffer.curs1, &char_length); edit 1042 src/editor/edit.c c = edit_buffer_get_current_byte (&edit->buffer); edit 1045 src/editor/edit.c edit->over_col++; edit 1047 src/editor/edit.c edit_cursor_move (edit, char_length); edit 1053 src/editor/edit.c edit_left_char_move_cmd (WEdit *edit) edit 1057 src/editor/edit.c if (edit->column_highlight edit 1059 src/editor/edit.c && edit->mark1 != edit->mark2 edit 1060 src/editor/edit.c && edit->over_col == 0 && edit->buffer.curs1 == edit_buffer_get_current_bol (&edit->buffer)) edit 1063 src/editor/edit.c if (edit->utf8) edit 1065 src/editor/edit.c edit_buffer_get_prev_utf (&edit->buffer, edit->buffer.curs1, &char_length); edit 1071 src/editor/edit.c if (edit_options.cursor_beyond_eol && edit->over_col > 0) edit 1072 src/editor/edit.c edit->over_col--; edit 1074 src/editor/edit.c edit_cursor_move (edit, -char_length); edit 1084 src/editor/edit.c edit_move_updown (WEdit *edit, long lines, gboolean do_scroll, gboolean direction) edit 1087 src/editor/edit.c long l = direction ? edit->buffer.curs_line : edit->buffer.lines - edit->buffer.curs_line; edit 1096 src/editor/edit.c edit->force |= REDRAW_PAGE; edit 1100 src/editor/edit.c edit_scroll_upward (edit, lines); edit 1102 src/editor/edit.c edit_scroll_downward (edit, lines); edit 1104 src/editor/edit.c p = edit_buffer_get_current_bol (&edit->buffer); edit 1105 src/editor/edit.c p = direction ? edit_buffer_get_backward_offset (&edit->buffer, p, lines) : edit 1106 src/editor/edit.c edit_buffer_get_forward_offset (&edit->buffer, p, lines, 0); edit 1107 src/editor/edit.c edit_cursor_move (edit, p - edit->buffer.curs1); edit 1108 src/editor/edit.c edit_move_to_prev_col (edit, p); edit 1112 src/editor/edit.c if (edit->buffer.curs1 > 0 && edit->buffer.curs1 + 1 < edit->buffer.size edit 1113 src/editor/edit.c && edit_buffer_get_current_byte (&edit->buffer) >= 256) edit 1115 src/editor/edit.c edit_right_char_move_cmd (edit); edit 1116 src/editor/edit.c edit_left_char_move_cmd (edit); edit 1120 src/editor/edit.c edit->search_start = edit->buffer.curs1; edit 1121 src/editor/edit.c edit->found_len = 0; edit 1127 src/editor/edit.c edit_right_delete_word (WEdit *edit) edit 1129 src/editor/edit.c while (edit->buffer.curs1 < edit->buffer.size) edit 1133 src/editor/edit.c c1 = edit_delete (edit, TRUE); edit 1136 src/editor/edit.c c2 = edit_buffer_get_current_byte (&edit->buffer); edit 1149 src/editor/edit.c edit_left_delete_word (WEdit *edit) edit 1151 src/editor/edit.c while (edit->buffer.curs1 > 0) edit 1155 src/editor/edit.c c1 = edit_backspace (edit, TRUE); edit 1158 src/editor/edit.c c2 = edit_buffer_get_previous_byte (&edit->buffer); edit 1175 src/editor/edit.c edit_do_undo (WEdit *edit) edit 1180 src/editor/edit.c edit->undo_stack_disable = 1; /* don't record undo's onto undo stack! */ edit 1181 src/editor/edit.c edit->over_col = 0; edit 1183 src/editor/edit.c while ((ac = edit_pop_undo_action (edit)) < KEY_PRESS) edit 1192 src/editor/edit.c edit_cursor_move (edit, 1); edit 1195 src/editor/edit.c edit_cursor_move (edit, -1); edit 1199 src/editor/edit.c edit_backspace (edit, TRUE); edit 1203 src/editor/edit.c edit_delete (edit, TRUE); edit 1206 src/editor/edit.c edit->column_highlight = 1; edit 1209 src/editor/edit.c edit->column_highlight = 0; edit 1215 src/editor/edit.c edit_insert_ahead (edit, ac - 256); edit 1217 src/editor/edit.c edit_insert (edit, ac); edit 1221 src/editor/edit.c edit->mark1 = ac - MARK_1; edit 1222 src/editor/edit.c b = edit_buffer_get_bol (&edit->buffer, edit->mark1); edit 1223 src/editor/edit.c edit->column1 = (long) edit_move_forward3 (edit, b, 0, edit->mark1); edit 1227 src/editor/edit.c edit->mark2 = ac - MARK_2; edit 1228 src/editor/edit.c b = edit_buffer_get_bol (&edit->buffer, edit->mark2); edit 1229 src/editor/edit.c edit->column2 = (long) edit_move_forward3 (edit, b, 0, edit->mark2); edit 1233 src/editor/edit.c edit->end_mark_curs = ac - MARK_CURS; edit 1236 src/editor/edit.c edit->force |= REDRAW_PAGE; /* more than one pop usually means something big */ edit 1239 src/editor/edit.c if (edit->start_display > ac - KEY_PRESS) edit 1241 src/editor/edit.c edit->start_line -= edit 1242 src/editor/edit.c edit_buffer_count_lines (&edit->buffer, ac - KEY_PRESS, edit->start_display); edit 1243 src/editor/edit.c edit->force |= REDRAW_PAGE; edit 1245 src/editor/edit.c else if (edit->start_display < ac - KEY_PRESS) edit 1247 src/editor/edit.c edit->start_line += edit 1248 src/editor/edit.c edit_buffer_count_lines (&edit->buffer, edit->start_display, ac - KEY_PRESS); edit 1249 src/editor/edit.c edit->force |= REDRAW_PAGE; edit 1251 src/editor/edit.c edit->start_display = ac - KEY_PRESS; /* see push and pop above */ edit 1252 src/editor/edit.c edit_update_curs_row (edit); edit 1255 src/editor/edit.c edit->undo_stack_disable = 0; edit 1261 src/editor/edit.c edit_do_redo (WEdit *edit) edit 1266 src/editor/edit.c if (edit->redo_stack_reset) edit 1269 src/editor/edit.c edit->over_col = 0; edit 1271 src/editor/edit.c while ((ac = edit_pop_redo_action (edit)) < KEY_PRESS) edit 1280 src/editor/edit.c edit_cursor_move (edit, 1); edit 1283 src/editor/edit.c edit_cursor_move (edit, -1); edit 1286 src/editor/edit.c edit_backspace (edit, TRUE); edit 1289 src/editor/edit.c edit_delete (edit, TRUE); edit 1292 src/editor/edit.c edit->column_highlight = 1; edit 1295 src/editor/edit.c edit->column_highlight = 0; edit 1301 src/editor/edit.c edit_insert_ahead (edit, ac - 256); edit 1303 src/editor/edit.c edit_insert (edit, ac); edit 1307 src/editor/edit.c edit->mark1 = ac - MARK_1; edit 1308 src/editor/edit.c b = edit_buffer_get_bol (&edit->buffer, edit->mark1); edit 1309 src/editor/edit.c edit->column1 = (long) edit_move_forward3 (edit, b, 0, edit->mark1); edit 1313 src/editor/edit.c edit->mark2 = ac - MARK_2; edit 1314 src/editor/edit.c b = edit_buffer_get_bol (&edit->buffer, edit->mark2); edit 1315 src/editor/edit.c edit->column2 = (long) edit_move_forward3 (edit, b, 0, edit->mark2); edit 1319 src/editor/edit.c edit->force |= REDRAW_PAGE; edit 1322 src/editor/edit.c if (edit->start_display > ac - KEY_PRESS) edit 1324 src/editor/edit.c edit->start_line -= edit 1325 src/editor/edit.c edit_buffer_count_lines (&edit->buffer, ac - KEY_PRESS, edit->start_display); edit 1326 src/editor/edit.c edit->force |= REDRAW_PAGE; edit 1328 src/editor/edit.c else if (edit->start_display < ac - KEY_PRESS) edit 1330 src/editor/edit.c edit->start_line += edit 1331 src/editor/edit.c edit_buffer_count_lines (&edit->buffer, edit->start_display, ac - KEY_PRESS); edit 1332 src/editor/edit.c edit->force |= REDRAW_PAGE; edit 1334 src/editor/edit.c edit->start_display = ac - KEY_PRESS; /* see push and pop above */ edit 1335 src/editor/edit.c edit_update_curs_row (edit); edit 1344 src/editor/edit.c edit_group_undo (WEdit *edit) edit 1351 src/editor/edit.c cur_ac = get_prev_undo_action (edit); edit 1352 src/editor/edit.c edit_do_undo (edit); edit 1353 src/editor/edit.c ac = get_prev_undo_action (edit); edit 1365 src/editor/edit.c edit_delete_to_line_end (WEdit *edit) edit 1367 src/editor/edit.c while (edit_buffer_get_current_byte (&edit->buffer) != '\n' && edit->buffer.curs2 != 0) edit 1368 src/editor/edit.c edit_delete (edit, TRUE); edit 1374 src/editor/edit.c edit_delete_to_line_begin (WEdit *edit) edit 1376 src/editor/edit.c while (edit_buffer_get_previous_byte (&edit->buffer) != '\n' && edit->buffer.curs1 != 0) edit 1377 src/editor/edit.c edit_backspace (edit, TRUE); edit 1383 src/editor/edit.c is_aligned_on_a_tab (WEdit *edit) edit 1387 src/editor/edit.c edit_update_curs_col (edit); edit 1388 src/editor/edit.c curs_col = edit->curs_col % (TAB_SIZE * space_width); edit 1395 src/editor/edit.c right_of_four_spaces (WEdit *edit) edit 1401 src/editor/edit.c ch |= edit_buffer_get_byte (&edit->buffer, edit->buffer.curs1 - i); edit 1403 src/editor/edit.c return (ch == ' ' && is_aligned_on_a_tab (edit)); edit 1409 src/editor/edit.c left_of_four_spaces (WEdit *edit) edit 1414 src/editor/edit.c ch |= edit_buffer_get_byte (&edit->buffer, edit->buffer.curs1 + i); edit 1416 src/editor/edit.c return (ch == ' ' && is_aligned_on_a_tab (edit)); edit 1422 src/editor/edit.c edit_auto_indent (WEdit *edit) edit 1426 src/editor/edit.c p = edit->buffer.curs1; edit 1428 src/editor/edit.c p = edit_buffer_get_backward_offset (&edit->buffer, p, 1); edit 1434 src/editor/edit.c c = edit_buffer_get_byte (&edit->buffer, p++); edit 1437 src/editor/edit.c edit_insert (edit, c); edit 1444 src/editor/edit.c edit_double_newline (WEdit *edit) edit 1446 src/editor/edit.c edit_insert (edit, '\n'); edit 1447 src/editor/edit.c if (edit_buffer_get_current_byte (&edit->buffer) == '\n' edit 1448 src/editor/edit.c || edit_buffer_get_byte (&edit->buffer, edit->buffer.curs1 - 2) == '\n') edit 1450 src/editor/edit.c edit->force |= REDRAW_PAGE; edit 1451 src/editor/edit.c edit_insert (edit, '\n'); edit 1457 src/editor/edit.c insert_spaces_tab (WEdit *edit, gboolean half) edit 1461 src/editor/edit.c edit_update_curs_col (edit); edit 1466 src/editor/edit.c for (i = ((edit->curs_col / i) + 1) * i - edit->curs_col; i > 0; i -= space_width) edit 1467 src/editor/edit.c edit_insert (edit, ' '); edit 1473 src/editor/edit.c edit_tab_cmd (WEdit *edit) edit 1475 src/editor/edit.c if (edit_options.fake_half_tabs && is_in_indent (&edit->buffer)) edit 1480 src/editor/edit.c if (edit_options.fill_tabs_with_spaces || !right_of_four_spaces (edit)) edit 1481 src/editor/edit.c insert_spaces_tab (edit, TRUE); edit 1487 src/editor/edit.c edit_backspace (edit, TRUE); edit 1488 src/editor/edit.c edit_insert (edit, '\t'); edit 1492 src/editor/edit.c insert_spaces_tab (edit, FALSE); edit 1494 src/editor/edit.c edit_insert (edit, '\t'); edit 1500 src/editor/edit.c check_and_wrap_line (WEdit *edit) edit 1506 src/editor/edit.c edit_update_curs_col (edit); edit 1507 src/editor/edit.c if (edit->curs_col < edit_options.word_wrap_line_length) edit 1509 src/editor/edit.c curs = edit->buffer.curs1; edit 1515 src/editor/edit.c c = edit_buffer_get_byte (&edit->buffer, curs); edit 1518 src/editor/edit.c edit_insert (edit, '\n'); edit 1523 src/editor/edit.c off_t current = edit->buffer.curs1; edit 1524 src/editor/edit.c edit_cursor_move (edit, curs - edit->buffer.curs1 + 1); edit 1525 src/editor/edit.c edit_insert (edit, '\n'); edit 1526 src/editor/edit.c edit_cursor_move (edit, current - edit->buffer.curs1 + 1); edit 1543 src/editor/edit.c edit_get_bracket (WEdit *edit, gboolean in_screen, unsigned long furthest_bracket_search) edit 1550 src/editor/edit.c edit_update_curs_row (edit); edit 1551 src/editor/edit.c c = edit_buffer_get_current_byte (&edit->buffer); edit 1564 src/editor/edit.c for (q = edit->buffer.curs1 + inc;; q += inc) edit 1569 src/editor/edit.c if (q >= edit->buffer.size || q < 0) edit 1571 src/editor/edit.c a = edit_buffer_get_byte (&edit->buffer, q); edit 1578 src/editor/edit.c if (q < edit->start_display) edit 1582 src/editor/edit.c if (n++ >= WIDGET (edit)->rect.lines - edit->curs_row) /* out of screen */ edit 1598 src/editor/edit.c edit_goto_matching_bracket (WEdit *edit) edit 1602 src/editor/edit.c q = edit_get_bracket (edit, 0, 0); edit 1605 src/editor/edit.c edit->bracket = edit->buffer.curs1; edit 1606 src/editor/edit.c edit->force |= REDRAW_PAGE; edit 1607 src/editor/edit.c edit_cursor_move (edit, q - edit->buffer.curs1); edit 1614 src/editor/edit.c edit_move_block_to_right (WEdit *edit) edit 1619 src/editor/edit.c if (!eval_marks (edit, &start_mark, &end_mark)) edit 1622 src/editor/edit.c start_bol = edit_buffer_get_bol (&edit->buffer, start_mark); edit 1623 src/editor/edit.c cur_bol = edit_buffer_get_bol (&edit->buffer, end_mark - 1); edit 1629 src/editor/edit.c edit_cursor_move (edit, cur_bol - edit->buffer.curs1); edit 1630 src/editor/edit.c if (!edit_line_is_blank (edit, edit->buffer.curs_line)) edit 1633 src/editor/edit.c insert_spaces_tab (edit, edit_options.fake_half_tabs); edit 1635 src/editor/edit.c edit_insert (edit, '\t'); edit 1637 src/editor/edit.c b = edit_buffer_get_bol (&edit->buffer, cur_bol); edit 1638 src/editor/edit.c edit_cursor_move (edit, b - edit->buffer.curs1); edit 1644 src/editor/edit.c cur_bol = edit_buffer_get_bol (&edit->buffer, cur_bol - 1); edit 1648 src/editor/edit.c edit->force |= REDRAW_PAGE; edit 1654 src/editor/edit.c edit_move_block_to_left (WEdit *edit) edit 1659 src/editor/edit.c if (!eval_marks (edit, &start_mark, &end_mark)) edit 1662 src/editor/edit.c start_bol = edit_buffer_get_bol (&edit->buffer, start_mark); edit 1663 src/editor/edit.c cur_bol = edit_buffer_get_bol (&edit->buffer, end_mark - 1); edit 1670 src/editor/edit.c edit_cursor_move (edit, cur_bol - edit->buffer.curs1); edit 1674 src/editor/edit.c next_char = edit_buffer_get_current_byte (&edit->buffer); edit 1676 src/editor/edit.c edit_delete (edit, TRUE); edit 1684 src/editor/edit.c edit_delete (edit, TRUE); edit 1685 src/editor/edit.c next_char = edit_buffer_get_current_byte (&edit->buffer); edit 1692 src/editor/edit.c cur_bol = edit_buffer_get_bol (&edit->buffer, cur_bol - 1); edit 1696 src/editor/edit.c edit->force |= REDRAW_PAGE; edit 1720 src/editor/edit.c edit_insert_column_from_file (WEdit *edit, int file, off_t *start_pos, off_t *end_pos, edit 1728 src/editor/edit.c cursor = edit->buffer.curs1; edit 1729 src/editor/edit.c col = edit_get_col (edit); edit 1743 src/editor/edit.c edit_insert (edit, data[i]); edit 1749 src/editor/edit.c if (edit_buffer_get_current_byte (&edit->buffer) != '\n') edit 1750 src/editor/edit.c for (l = width - (edit_get_col (edit) - col); l > 0; l -= space_width) edit 1751 src/editor/edit.c edit_insert (edit, ' '); edit 1753 src/editor/edit.c for (p = edit->buffer.curs1;; p++) edit 1755 src/editor/edit.c if (p == edit->buffer.size) edit 1757 src/editor/edit.c edit_cursor_move (edit, edit->buffer.size - edit->buffer.curs1); edit 1758 src/editor/edit.c edit_insert_ahead (edit, '\n'); edit 1762 src/editor/edit.c if (edit_buffer_get_byte (&edit->buffer, p) == '\n') edit 1769 src/editor/edit.c edit_cursor_move (edit, edit_move_forward3 (edit, p, col, 0) - edit->buffer.curs1); edit 1771 src/editor/edit.c for (l = col - edit_get_col (edit); l >= space_width; l -= space_width) edit 1772 src/editor/edit.c edit_insert (edit, ' '); edit 1779 src/editor/edit.c *end_pos = edit->buffer.curs1; edit 1780 src/editor/edit.c edit_cursor_move (edit, cursor - edit->buffer.curs1); edit 1793 src/editor/edit.c edit_user_menu (WEdit *edit, const char *menu_file, int selected_entry) edit 1804 src/editor/edit.c curs = edit->buffer.curs1; edit 1805 src/editor/edit.c mark = eval_marks (edit, &start_mark, &end_mark); edit 1807 src/editor/edit.c edit_save_block (edit, block_file, start_mark, end_mark); edit 1810 src/editor/edit.c if (user_menu_cmd (CONST_WIDGET (edit), menu_file, selected_entry) edit 1818 src/editor/edit.c rc = edit_block_delete_cmd (edit); edit 1824 src/editor/edit.c ins_len = edit_insert_file (edit, block_file_vpath); edit 1826 src/editor/edit.c edit_set_markers (edit, start_mark, start_mark + ins_len, 0, 0); edit 1836 src/editor/edit.c edit_cursor_move (edit, curs - edit->buffer.curs1); edit 1837 src/editor/edit.c edit->force |= REDRAW_PAGE; edit 1838 src/editor/edit.c widget_draw (WIDGET (edit)); edit 1873 src/editor/edit.c edit_write_stream (WEdit *edit, FILE *f) edit 1877 src/editor/edit.c if (edit->lb == LB_ASIS) edit 1879 src/editor/edit.c for (i = 0; i < edit->buffer.size; i++) edit 1880 src/editor/edit.c if (fputc (edit_buffer_get_byte (&edit->buffer, i), f) < 0) edit 1886 src/editor/edit.c for (i = 0; i < edit->buffer.size; i++) edit 1890 src/editor/edit.c c = edit_buffer_get_byte (&edit->buffer, i); edit 1901 src/editor/edit.c c1 = edit_buffer_get_byte (&edit->buffer, i + 1); /* next char */ edit 1903 src/editor/edit.c switch (edit->lb) edit 1967 src/editor/edit.c return edit->buffer.size; edit 1982 src/editor/edit.c edit_insert_file (WEdit *edit, const vfs_path_t *filename_vpath) edit 1989 src/editor/edit.c current = edit->buffer.curs1; edit 1998 src/editor/edit.c edit_insert_stream (edit, f); edit 2003 src/editor/edit.c ins_len = edit->buffer.curs1 - current; edit 2004 src/editor/edit.c edit_cursor_move (edit, -ins_len); edit 2046 src/editor/edit.c blocklen = edit_insert_column_from_file (edit, file, &mark1, &mark2, &c1, &c2); edit 2047 src/editor/edit.c edit_set_markers (edit, edit->buffer.curs1, mark2, c1, c2); edit 2050 src/editor/edit.c if (!edit_options.persistent_selections && edit->modified != 0) edit 2052 src/editor/edit.c if (edit->column_highlight == 0) edit 2053 src/editor/edit.c edit_push_undo_action (edit, COLUMN_OFF); edit 2054 src/editor/edit.c edit->column_highlight = 1; edit 2064 src/editor/edit.c edit_insert (edit, buf[i]); edit 2067 src/editor/edit.c if (!edit_options.persistent_selections && edit->modified != 0) edit 2069 src/editor/edit.c edit_set_markers (edit, edit->buffer.curs1, current, 0, 0); edit 2070 src/editor/edit.c if (edit->column_highlight != 0) edit 2071 src/editor/edit.c edit_push_undo_action (edit, COLUMN_ON); edit 2072 src/editor/edit.c edit->column_highlight = 0; edit 2078 src/editor/edit.c ins_len = edit->buffer.curs1 - current; edit 2079 src/editor/edit.c edit_cursor_move (edit, -ins_len); edit 2083 src/editor/edit.c edit->force |= REDRAW_PAGE; edit 2103 src/editor/edit.c edit_init (WEdit *edit, const WRect *r, const edit_arg_t *arg) edit 2111 src/editor/edit.c if (edit != NULL) edit 2117 src/editor/edit.c fullscreen = edit->fullscreen; edit 2118 src/editor/edit.c loc_prev = edit->loc_prev; edit 2120 src/editor/edit.c edit_purge_widget (edit); edit 2123 src/editor/edit.c edit->fullscreen = fullscreen; edit 2124 src/editor/edit.c edit->loc_prev = loc_prev; edit 2130 src/editor/edit.c edit = g_malloc0 (sizeof (WEdit)); edit 2133 src/editor/edit.c w = WIDGET (edit); edit 2138 src/editor/edit.c edit->fullscreen = 1; edit 2139 src/editor/edit.c edit_save_size (edit); edit 2142 src/editor/edit.c edit->drag_state = MCEDIT_DRAG_NONE; edit 2144 src/editor/edit.c edit->stat1.st_mode = S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH; edit 2145 src/editor/edit.c edit->stat1.st_uid = getuid (); edit 2146 src/editor/edit.c edit->stat1.st_gid = getgid (); edit 2147 src/editor/edit.c edit->stat1.st_mtime = 0; edit 2150 src/editor/edit.c edit->attrs_ok = (mc_fgetflags (arg->file_vpath, &edit->attrs) == 0); edit 2152 src/editor/edit.c edit->attrs_ok = FALSE; edit 2154 src/editor/edit.c edit->over_col = 0; edit 2155 src/editor/edit.c edit->bracket = -1; edit 2156 src/editor/edit.c edit->last_bracket = -1; edit 2157 src/editor/edit.c edit->force |= REDRAW_PAGE; edit 2162 src/editor/edit.c edit_set_filename (edit, arg->file_vpath); edit 2167 src/editor/edit.c edit_set_filename (edit, NULL); edit 2171 src/editor/edit.c edit->undo_stack_size = START_STACK_SIZE; edit 2172 src/editor/edit.c edit->undo_stack_size_mask = START_STACK_SIZE - 1; edit 2173 src/editor/edit.c edit->undo_stack = g_malloc0 ((edit->undo_stack_size + 10) * sizeof (long)); edit 2175 src/editor/edit.c edit->redo_stack_size = START_STACK_SIZE; edit 2176 src/editor/edit.c edit->redo_stack_size_mask = START_STACK_SIZE - 1; edit 2177 src/editor/edit.c edit->redo_stack = g_malloc0 ((edit->redo_stack_size + 10) * sizeof (long)); edit 2180 src/editor/edit.c edit->utf8 = FALSE; edit 2181 src/editor/edit.c edit->converter = str_cnv_from_term; edit 2182 src/editor/edit.c edit_set_codeset (edit); edit 2185 src/editor/edit.c if (!edit_load_file (edit)) edit 2189 src/editor/edit.c g_free (edit); edit 2193 src/editor/edit.c edit->loading_done = 1; edit 2194 src/editor/edit.c edit->modified = 0; edit 2195 src/editor/edit.c edit->locked = 0; edit 2196 src/editor/edit.c edit_load_syntax (edit, NULL, NULL); edit 2197 src/editor/edit.c edit_get_syntax_color (edit, -1); edit 2201 src/editor/edit.c edit_load_position (edit, TRUE); edit 2204 src/editor/edit.c edit_load_position (edit, FALSE); edit 2207 src/editor/edit.c edit_move_display (edit, line - 1); edit 2208 src/editor/edit.c edit_move_to_line (edit, line - 1); edit 2211 src/editor/edit.c edit_load_macro_cmd (edit); edit 2213 src/editor/edit.c return edit; edit 2220 src/editor/edit.c edit_clean (WEdit *edit) edit 2222 src/editor/edit.c if (edit == NULL) edit 2226 src/editor/edit.c if (edit->locked) edit 2227 src/editor/edit.c edit->locked = unlock_file (edit->filename_vpath); edit 2231 src/editor/edit.c edit_save_position (edit); edit 2232 src/editor/edit.c else if (edit->serialized_bookmarks != NULL) edit 2233 src/editor/edit.c g_array_free (edit->serialized_bookmarks, TRUE); edit 2236 src/editor/edit.c if (edit->delete_file != 0) edit 2237 src/editor/edit.c unlink (vfs_path_get_last_path_str (edit->filename_vpath)); edit 2239 src/editor/edit.c edit_free_syntax_rules (edit); edit 2240 src/editor/edit.c book_mark_flush (edit, -1); edit 2242 src/editor/edit.c edit_buffer_clean (&edit->buffer); edit 2244 src/editor/edit.c g_free (edit->undo_stack); edit 2245 src/editor/edit.c g_free (edit->redo_stack); edit 2246 src/editor/edit.c vfs_path_free (edit->filename_vpath, TRUE); edit 2247 src/editor/edit.c vfs_path_free (edit->dir_vpath, TRUE); edit 2248 src/editor/edit.c edit_search_deinit (edit); edit 2251 src/editor/edit.c if (edit->converter != str_cnv_from_term) edit 2252 src/editor/edit.c str_close_conv (edit->converter); edit 2255 src/editor/edit.c edit_purge_widget (edit); edit 2270 src/editor/edit.c edit_reload_line (WEdit *edit, const edit_arg_t *arg) edit 2272 src/editor/edit.c Widget *w = WIDGET (edit); edit 2278 src/editor/edit.c e->fullscreen = edit->fullscreen; edit 2279 src/editor/edit.c e->loc_prev = edit->loc_prev; edit 2287 src/editor/edit.c edit_clean (edit); edit 2288 src/editor/edit.c memcpy (edit, e, sizeof (*edit)); edit 2298 src/editor/edit.c edit_set_codeset (WEdit *edit) edit 2312 src/editor/edit.c if (edit->converter != str_cnv_from_term) edit 2313 src/editor/edit.c str_close_conv (edit->converter); edit 2314 src/editor/edit.c edit->converter = conv; edit 2319 src/editor/edit.c edit->utf8 = str_isutf8 (cp_id); edit 2370 src/editor/edit.c edit_push_undo_action (WEdit *edit, long c) edit 2372 src/editor/edit.c unsigned long sp = edit->undo_stack_pointer; edit 2376 src/editor/edit.c if (sp > edit->undo_stack_size - 10) edit 2380 src/editor/edit.c if (edit->undo_stack_size < (unsigned long) max_undo) edit 2384 src/editor/edit.c t = g_realloc (edit->undo_stack, (edit->undo_stack_size * 2 + 10) * sizeof (long)); edit 2387 src/editor/edit.c edit->undo_stack = t; edit 2388 src/editor/edit.c edit->undo_stack_size <<= 1; edit 2389 src/editor/edit.c edit->undo_stack_size_mask = edit->undo_stack_size - 1; edit 2393 src/editor/edit.c spm1 = (edit->undo_stack_pointer - 1) & edit->undo_stack_size_mask; edit 2394 src/editor/edit.c if (edit->undo_stack_disable) edit 2396 src/editor/edit.c edit_push_redo_action (edit, KEY_PRESS); edit 2397 src/editor/edit.c edit_push_redo_action (edit, c); edit 2401 src/editor/edit.c if (edit->redo_stack_reset) edit 2402 src/editor/edit.c edit->redo_stack_bottom = edit->redo_stack_pointer = 0; edit 2404 src/editor/edit.c if (edit->undo_stack_bottom != sp edit 2405 src/editor/edit.c && spm1 != edit->undo_stack_bottom edit 2406 src/editor/edit.c && ((sp - 2) & edit->undo_stack_size_mask) != edit->undo_stack_bottom) edit 2410 src/editor/edit.c if (edit->undo_stack[spm1] < 0) edit 2412 src/editor/edit.c d = edit->undo_stack[(sp - 2) & edit->undo_stack_size_mask]; edit 2413 src/editor/edit.c if (d == c && edit->undo_stack[spm1] > -1000000000) edit 2416 src/editor/edit.c edit->undo_stack[spm1]--; edit 2422 src/editor/edit.c d = edit->undo_stack[spm1]; edit 2427 src/editor/edit.c edit->undo_stack[sp] = -2; edit 2432 src/editor/edit.c edit->undo_stack[sp] = c; edit 2435 src/editor/edit.c edit->undo_stack_pointer = (edit->undo_stack_pointer + 1) & edit->undo_stack_size_mask; edit 2440 src/editor/edit.c c = (edit->undo_stack_pointer + 2) & edit->undo_stack_size_mask; edit 2441 src/editor/edit.c if ((unsigned long) c == edit->undo_stack_bottom || edit 2442 src/editor/edit.c (((unsigned long) c + 1) & edit->undo_stack_size_mask) == edit->undo_stack_bottom) edit 2445 src/editor/edit.c edit->undo_stack_bottom = (edit->undo_stack_bottom + 1) & edit->undo_stack_size_mask; edit 2447 src/editor/edit.c while (edit->undo_stack[edit->undo_stack_bottom] < KEY_PRESS edit 2448 src/editor/edit.c && edit->undo_stack_bottom != edit->undo_stack_pointer); edit 2451 src/editor/edit.c if (edit->undo_stack_pointer != edit->undo_stack_bottom edit 2452 src/editor/edit.c && edit->undo_stack[edit->undo_stack_bottom] < KEY_PRESS) edit 2454 src/editor/edit.c edit->undo_stack_bottom = edit->undo_stack_pointer = 0; edit 2461 src/editor/edit.c edit_push_redo_action (WEdit *edit, long c) edit 2463 src/editor/edit.c unsigned long sp = edit->redo_stack_pointer; edit 2466 src/editor/edit.c if (sp > edit->redo_stack_size - 10) edit 2470 src/editor/edit.c if (edit->redo_stack_size < (unsigned long) max_undo) edit 2474 src/editor/edit.c t = g_realloc (edit->redo_stack, (edit->redo_stack_size * 2 + 10) * sizeof (long)); edit 2477 src/editor/edit.c edit->redo_stack = t; edit 2478 src/editor/edit.c edit->redo_stack_size <<= 1; edit 2479 src/editor/edit.c edit->redo_stack_size_mask = edit->redo_stack_size - 1; edit 2483 src/editor/edit.c spm1 = (edit->redo_stack_pointer - 1) & edit->redo_stack_size_mask; edit 2485 src/editor/edit.c if (edit->redo_stack_bottom != sp edit 2486 src/editor/edit.c && spm1 != edit->redo_stack_bottom edit 2487 src/editor/edit.c && ((sp - 2) & edit->redo_stack_size_mask) != edit->redo_stack_bottom) edit 2491 src/editor/edit.c if (edit->redo_stack[spm1] < 0) edit 2493 src/editor/edit.c d = edit->redo_stack[(sp - 2) & edit->redo_stack_size_mask]; edit 2494 src/editor/edit.c if (d == c && edit->redo_stack[spm1] > -1000000000) edit 2497 src/editor/edit.c edit->redo_stack[spm1]--; edit 2503 src/editor/edit.c d = edit->redo_stack[spm1]; edit 2508 src/editor/edit.c edit->redo_stack[sp] = -2; edit 2513 src/editor/edit.c edit->redo_stack[sp] = c; edit 2516 src/editor/edit.c edit->redo_stack_pointer = (edit->redo_stack_pointer + 1) & edit->redo_stack_size_mask; edit 2521 src/editor/edit.c c = (edit->redo_stack_pointer + 2) & edit->redo_stack_size_mask; edit 2522 src/editor/edit.c if ((unsigned long) c == edit->redo_stack_bottom || edit 2523 src/editor/edit.c (((unsigned long) c + 1) & edit->redo_stack_size_mask) == edit->redo_stack_bottom) edit 2526 src/editor/edit.c edit->redo_stack_bottom = (edit->redo_stack_bottom + 1) & edit->redo_stack_size_mask; edit 2528 src/editor/edit.c while (edit->redo_stack[edit->redo_stack_bottom] < KEY_PRESS edit 2529 src/editor/edit.c && edit->redo_stack_bottom != edit->redo_stack_pointer); edit 2537 src/editor/edit.c if (edit->redo_stack_pointer != edit->redo_stack_bottom edit 2538 src/editor/edit.c && edit->redo_stack[edit->redo_stack_bottom] < KEY_PRESS) edit 2539 src/editor/edit.c edit->redo_stack_bottom = edit->redo_stack_pointer = 0; edit 2548 src/editor/edit.c edit_insert (WEdit *edit, int c) edit 2551 src/editor/edit.c if (edit->buffer.curs1 < edit->start_display) edit 2553 src/editor/edit.c edit->start_display++; edit 2555 src/editor/edit.c edit->start_line++; edit 2559 src/editor/edit.c if (edit->loading_done != 0) edit 2560 src/editor/edit.c edit_modification (edit); edit 2565 src/editor/edit.c book_mark_inc (edit, edit->buffer.curs_line); edit 2566 src/editor/edit.c edit->buffer.curs_line++; edit 2567 src/editor/edit.c edit->buffer.lines++; edit 2568 src/editor/edit.c edit->force |= REDRAW_LINE_ABOVE | REDRAW_AFTER_CURSOR; edit 2574 src/editor/edit.c edit_push_undo_action (edit, BACKSPACE); edit 2576 src/editor/edit.c edit_push_undo_action (edit, BACKSPACE_BR); edit 2578 src/editor/edit.c edit->mark1 += (edit->mark1 > edit->buffer.curs1) ? 1 : 0; edit 2579 src/editor/edit.c edit->mark2 += (edit->mark2 > edit->buffer.curs1) ? 1 : 0; edit 2580 src/editor/edit.c edit->last_get_rule += (edit->last_get_rule > edit->buffer.curs1) ? 1 : 0; edit 2582 src/editor/edit.c edit_buffer_insert (&edit->buffer, c); edit 2589 src/editor/edit.c edit_insert_ahead (WEdit *edit, int c) edit 2591 src/editor/edit.c if (edit->buffer.curs1 < edit->start_display) edit 2593 src/editor/edit.c edit->start_display++; edit 2595 src/editor/edit.c edit->start_line++; edit 2597 src/editor/edit.c edit_modification (edit); edit 2600 src/editor/edit.c book_mark_inc (edit, edit->buffer.curs_line); edit 2601 src/editor/edit.c edit->buffer.lines++; edit 2602 src/editor/edit.c edit->force |= REDRAW_AFTER_CURSOR; edit 2606 src/editor/edit.c edit_push_undo_action (edit, DELCHAR); edit 2608 src/editor/edit.c edit_push_undo_action (edit, DELCHAR_BR); edit 2610 src/editor/edit.c edit->mark1 += (edit->mark1 >= edit->buffer.curs1) ? 1 : 0; edit 2611 src/editor/edit.c edit->mark2 += (edit->mark2 >= edit->buffer.curs1) ? 1 : 0; edit 2612 src/editor/edit.c edit->last_get_rule += (edit->last_get_rule >= edit->buffer.curs1) ? 1 : 0; edit 2614 src/editor/edit.c edit_buffer_insert_ahead (&edit->buffer, c); edit 2620 src/editor/edit.c edit_insert_over (WEdit *edit) edit 2624 src/editor/edit.c for (i = 0; i < edit->over_col; i++) edit 2625 src/editor/edit.c edit_insert (edit, ' '); edit 2627 src/editor/edit.c edit->over_col = 0; edit 2633 src/editor/edit.c edit_delete (WEdit *edit, gboolean byte_delete) edit 2639 src/editor/edit.c if (edit->buffer.curs2 == 0) edit 2644 src/editor/edit.c if (edit->utf8 && !byte_delete) edit 2646 src/editor/edit.c edit_buffer_get_utf (&edit->buffer, edit->buffer.curs1, &char_length); edit 2654 src/editor/edit.c if (edit->mark2 != edit->mark1) edit 2655 src/editor/edit.c edit_push_markers (edit); edit 2659 src/editor/edit.c if (edit->mark1 > edit->buffer.curs1) edit 2661 src/editor/edit.c edit->mark1--; edit 2662 src/editor/edit.c edit->end_mark_curs--; edit 2664 src/editor/edit.c if (edit->mark2 > edit->buffer.curs1) edit 2665 src/editor/edit.c edit->mark2--; edit 2666 src/editor/edit.c if (edit->last_get_rule > edit->buffer.curs1) edit 2667 src/editor/edit.c edit->last_get_rule--; edit 2669 src/editor/edit.c p = edit_buffer_delete (&edit->buffer); edit 2671 src/editor/edit.c edit_push_undo_action (edit, p + 256); edit 2674 src/editor/edit.c edit_modification (edit); edit 2677 src/editor/edit.c book_mark_dec (edit, edit->buffer.curs_line); edit 2678 src/editor/edit.c edit->buffer.lines--; edit 2679 src/editor/edit.c edit->force |= REDRAW_AFTER_CURSOR; edit 2681 src/editor/edit.c if (edit->buffer.curs1 < edit->start_display) edit 2683 src/editor/edit.c edit->start_display--; edit 2685 src/editor/edit.c edit->start_line--; edit 2694 src/editor/edit.c edit_backspace (WEdit *edit, gboolean byte_delete) edit 2700 src/editor/edit.c if (edit->buffer.curs1 == 0) edit 2703 src/editor/edit.c if (edit->mark2 != edit->mark1) edit 2704 src/editor/edit.c edit_push_markers (edit); edit 2707 src/editor/edit.c if (edit->utf8 && !byte_delete) edit 2709 src/editor/edit.c edit_buffer_get_prev_utf (&edit->buffer, edit->buffer.curs1, &char_length); edit 2719 src/editor/edit.c if (edit->mark1 >= edit->buffer.curs1) edit 2721 src/editor/edit.c edit->mark1--; edit 2722 src/editor/edit.c edit->end_mark_curs--; edit 2724 src/editor/edit.c if (edit->mark2 >= edit->buffer.curs1) edit 2725 src/editor/edit.c edit->mark2--; edit 2726 src/editor/edit.c if (edit->last_get_rule >= edit->buffer.curs1) edit 2727 src/editor/edit.c edit->last_get_rule--; edit 2729 src/editor/edit.c p = edit_buffer_backspace (&edit->buffer); edit 2731 src/editor/edit.c edit_push_undo_action (edit, p); edit 2733 src/editor/edit.c edit_modification (edit); edit 2736 src/editor/edit.c book_mark_dec (edit, edit->buffer.curs_line); edit 2737 src/editor/edit.c edit->buffer.curs_line--; edit 2738 src/editor/edit.c edit->buffer.lines--; edit 2739 src/editor/edit.c edit->force |= REDRAW_AFTER_CURSOR; edit 2742 src/editor/edit.c if (edit->buffer.curs1 < edit->start_display) edit 2744 src/editor/edit.c edit->start_display--; edit 2746 src/editor/edit.c edit->start_line--; edit 2756 src/editor/edit.c edit_cursor_move (WEdit *edit, off_t increment) edit 2760 src/editor/edit.c for (; increment < 0 && edit->buffer.curs1 != 0; increment++) edit 2764 src/editor/edit.c edit_push_undo_action (edit, CURS_RIGHT); edit 2766 src/editor/edit.c c = edit_buffer_get_previous_byte (&edit->buffer); edit 2767 src/editor/edit.c edit_buffer_insert_ahead (&edit->buffer, c); edit 2768 src/editor/edit.c c = edit_buffer_backspace (&edit->buffer); edit 2771 src/editor/edit.c edit->buffer.curs_line--; edit 2772 src/editor/edit.c edit->force |= REDRAW_LINE_BELOW; edit 2778 src/editor/edit.c for (; increment > 0 && edit->buffer.curs2 != 0; increment--) edit 2782 src/editor/edit.c edit_push_undo_action (edit, CURS_LEFT); edit 2784 src/editor/edit.c c = edit_buffer_get_current_byte (&edit->buffer); edit 2785 src/editor/edit.c edit_buffer_insert (&edit->buffer, c); edit 2786 src/editor/edit.c c = edit_buffer_delete (&edit->buffer); edit 2789 src/editor/edit.c edit->buffer.curs_line++; edit 2790 src/editor/edit.c edit->force |= REDRAW_LINE_ABOVE; edit 2801 src/editor/edit.c edit_move_forward3 (const WEdit *edit, off_t current, long cols, off_t upto) edit 2812 src/editor/edit.c q = edit->buffer.size + 2; edit 2826 src/editor/edit.c orig_c = c = edit_buffer_get_byte (&edit->buffer, p); edit 2829 src/editor/edit.c if (edit->utf8) edit 2834 src/editor/edit.c utf_ch = edit_buffer_get_utf (&edit->buffer, p, &char_length); edit 2855 src/editor/edit.c || (!mc_global.utf8_display && !edit->utf8) edit 2871 src/editor/edit.c edit_get_cursor_offset (const WEdit *edit) edit 2873 src/editor/edit.c return edit->buffer.curs1; edit 2880 src/editor/edit.c edit_get_col (const WEdit *edit) edit 2884 src/editor/edit.c b = edit_buffer_get_current_bol (&edit->buffer); edit 2885 src/editor/edit.c return (long) edit_move_forward3 (edit, b, 0, edit->buffer.curs1); edit 2893 src/editor/edit.c edit_update_curs_row (WEdit *edit) edit 2895 src/editor/edit.c edit->curs_row = edit->buffer.curs_line - edit->start_line; edit 2901 src/editor/edit.c edit_update_curs_col (WEdit *edit) edit 2905 src/editor/edit.c b = edit_buffer_get_current_bol (&edit->buffer); edit 2906 src/editor/edit.c edit->curs_col = (long) edit_move_forward3 (edit, b, 0, edit->buffer.curs1); edit 2912 src/editor/edit.c edit_get_curs_col (const WEdit *edit) edit 2914 src/editor/edit.c return edit->curs_col; edit 2921 src/editor/edit.c edit_scroll_upward (WEdit *edit, long i) edit 2923 src/editor/edit.c long lines_above = edit->start_line; edit 2929 src/editor/edit.c edit->start_line -= i; edit 2930 src/editor/edit.c edit->start_display = edit 2931 src/editor/edit.c edit_buffer_get_backward_offset (&edit->buffer, edit->start_display, i); edit 2932 src/editor/edit.c edit->force |= REDRAW_PAGE; edit 2933 src/editor/edit.c edit->force &= (0xfff - REDRAW_CHAR_ONLY); edit 2935 src/editor/edit.c edit_update_curs_row (edit); edit 2941 src/editor/edit.c edit_scroll_downward (WEdit *edit, long i) edit 2945 src/editor/edit.c lines_below = edit->buffer.lines - edit->start_line - (WIDGET (edit)->rect.lines - 1); edit 2950 src/editor/edit.c edit->start_line += i; edit 2951 src/editor/edit.c edit->start_display = edit 2952 src/editor/edit.c edit_buffer_get_forward_offset (&edit->buffer, edit->start_display, i, 0); edit 2953 src/editor/edit.c edit->force |= REDRAW_PAGE; edit 2954 src/editor/edit.c edit->force &= (0xfff - REDRAW_CHAR_ONLY); edit 2956 src/editor/edit.c edit_update_curs_row (edit); edit 2962 src/editor/edit.c edit_scroll_right (WEdit *edit, long i) edit 2964 src/editor/edit.c edit->force |= REDRAW_PAGE; edit 2965 src/editor/edit.c edit->force &= (0xfff - REDRAW_CHAR_ONLY); edit 2966 src/editor/edit.c edit->start_col -= i; edit 2972 src/editor/edit.c edit_scroll_left (WEdit *edit, long i) edit 2974 src/editor/edit.c if (edit->start_col) edit 2976 src/editor/edit.c edit->start_col += i; edit 2977 src/editor/edit.c if (edit->start_col > 0) edit 2978 src/editor/edit.c edit->start_col = 0; edit 2979 src/editor/edit.c edit->force |= REDRAW_PAGE; edit 2980 src/editor/edit.c edit->force &= (0xfff - REDRAW_CHAR_ONLY); edit 2989 src/editor/edit.c edit_move_to_prev_col (WEdit *edit, off_t p) edit 2991 src/editor/edit.c long prev = edit->prev_col; edit 2992 src/editor/edit.c long over = edit->over_col; edit 2995 src/editor/edit.c edit_cursor_move (edit, edit 2996 src/editor/edit.c edit_move_forward3 (edit, p, prev + edit->over_col, 0) - edit->buffer.curs1); edit 3003 src/editor/edit.c b = edit_buffer_get_current_bol (&edit->buffer); edit 3004 src/editor/edit.c e = edit_buffer_get_current_eol (&edit->buffer); edit 3005 src/editor/edit.c line_len = (long) edit_move_forward3 (edit, b, 0, e); edit 3006 src/editor/edit.c if (line_len < prev + edit->over_col) edit 3008 src/editor/edit.c edit->over_col = prev + over - line_len; edit 3009 src/editor/edit.c edit->prev_col = line_len; edit 3010 src/editor/edit.c edit->curs_col = line_len; edit 3014 src/editor/edit.c edit->curs_col = prev + over; edit 3015 src/editor/edit.c edit->prev_col = edit->curs_col; edit 3016 src/editor/edit.c edit->over_col = 0; edit 3021 src/editor/edit.c edit->over_col = 0; edit 3022 src/editor/edit.c if (edit_options.fake_half_tabs && is_in_indent (&edit->buffer)) edit 3026 src/editor/edit.c edit_update_curs_col (edit); edit 3029 src/editor/edit.c if (fake_half_tabs != 0 && edit->curs_col % fake_half_tabs != 0) edit 3033 src/editor/edit.c q = edit->curs_col; edit 3034 src/editor/edit.c edit->curs_col -= (edit->curs_col % fake_half_tabs); edit 3035 src/editor/edit.c p = edit_buffer_get_current_bol (&edit->buffer); edit 3036 src/editor/edit.c b = edit_move_forward3 (edit, p, edit->curs_col, 0); edit 3037 src/editor/edit.c edit_cursor_move (edit, b - edit->buffer.curs1); edit 3038 src/editor/edit.c if (!left_of_four_spaces (edit)) edit 3040 src/editor/edit.c b = edit_move_forward3 (edit, p, q, 0); edit 3041 src/editor/edit.c edit_cursor_move (edit, b - edit->buffer.curs1); edit 3058 src/editor/edit.c edit_line_is_blank (WEdit *edit, long line) edit 3060 src/editor/edit.c return is_blank (&edit->buffer, edit_find_line (edit, line)); edit 3092 src/editor/edit.c edit_push_markers (WEdit *edit) edit 3094 src/editor/edit.c edit_push_undo_action (edit, MARK_1 + edit->mark1); edit 3095 src/editor/edit.c edit_push_undo_action (edit, MARK_2 + edit->mark2); edit 3096 src/editor/edit.c edit_push_undo_action (edit, MARK_CURS + edit->end_mark_curs); edit 3102 src/editor/edit.c edit_set_markers (WEdit *edit, off_t m1, off_t m2, long c1, long c2) edit 3104 src/editor/edit.c edit->mark1 = m1; edit 3105 src/editor/edit.c edit->mark2 = m2; edit 3106 src/editor/edit.c edit->column1 = c1; edit 3107 src/editor/edit.c edit->column2 = c2; edit 3118 src/editor/edit.c eval_marks (WEdit *edit, off_t *start_mark, off_t *end_mark) edit 3122 src/editor/edit.c if (edit->mark1 == edit->mark2) edit 3125 src/editor/edit.c edit->column2 = edit->column1 = 0; edit 3129 src/editor/edit.c if (edit->end_mark_curs < 0) edit 3130 src/editor/edit.c end_mark_curs = edit->buffer.curs1; edit 3132 src/editor/edit.c end_mark_curs = edit->end_mark_curs; edit 3134 src/editor/edit.c if (edit->mark2 >= 0) edit 3136 src/editor/edit.c *start_mark = MIN (edit->mark1, edit->mark2); edit 3137 src/editor/edit.c *end_mark = MAX (edit->mark1, edit->mark2); edit 3141 src/editor/edit.c *start_mark = MIN (edit->mark1, end_mark_curs); edit 3142 src/editor/edit.c *end_mark = MAX (edit->mark1, end_mark_curs); edit 3143 src/editor/edit.c edit->column2 = edit->curs_col + edit->over_col; edit 3146 src/editor/edit.c if (edit->column_highlight != 0 edit 3147 src/editor/edit.c && ((edit->mark1 > end_mark_curs && edit->column1 < edit->column2) edit 3148 src/editor/edit.c || (edit->mark1 < end_mark_curs && edit->column1 > edit->column2))) edit 3155 src/editor/edit.c start_bol = edit_buffer_get_bol (&edit->buffer, *start_mark); edit 3156 src/editor/edit.c start_eol = edit_buffer_get_eol (&edit->buffer, start_bol - 1) + 1; edit 3157 src/editor/edit.c end_bol = edit_buffer_get_bol (&edit->buffer, *end_mark); edit 3158 src/editor/edit.c end_eol = edit_buffer_get_eol (&edit->buffer, *end_mark); edit 3159 src/editor/edit.c col1 = MIN (edit->column1, edit->column2); edit 3160 src/editor/edit.c col2 = MAX (edit->column1, edit->column2); edit 3162 src/editor/edit.c diff1 = edit_move_forward3 (edit, start_bol, col2, 0) - edit 3163 src/editor/edit.c edit_move_forward3 (edit, start_bol, col1, 0); edit 3164 src/editor/edit.c diff2 = edit_move_forward3 (edit, end_bol, col2, 0) - edit 3165 src/editor/edit.c edit_move_forward3 (edit, end_bol, col1, 0); edit 3180 src/editor/edit.c edit_mark_cmd (WEdit *edit, gboolean unmark) edit 3182 src/editor/edit.c edit_push_markers (edit); edit 3185 src/editor/edit.c edit_set_markers (edit, 0, 0, 0, 0); edit 3186 src/editor/edit.c edit->force |= REDRAW_PAGE; edit 3188 src/editor/edit.c else if (edit->mark2 >= 0) edit 3190 src/editor/edit.c edit->end_mark_curs = -1; edit 3191 src/editor/edit.c edit_set_markers (edit, edit->buffer.curs1, -1, edit->curs_col + edit->over_col, edit 3192 src/editor/edit.c edit->curs_col + edit->over_col); edit 3193 src/editor/edit.c edit->force |= REDRAW_PAGE; edit 3197 src/editor/edit.c edit->end_mark_curs = edit->buffer.curs1; edit 3198 src/editor/edit.c edit_set_markers (edit, edit->mark1, edit->buffer.curs1, edit->column1, edit 3199 src/editor/edit.c edit->curs_col + edit->over_col); edit 3207 src/editor/edit.c edit_mark_current_word_cmd (WEdit *edit) edit 3211 src/editor/edit.c for (pos = edit->buffer.curs1; pos != 0; pos--) edit 3215 src/editor/edit.c c1 = edit_buffer_get_byte (&edit->buffer, pos); edit 3216 src/editor/edit.c c2 = edit_buffer_get_byte (&edit->buffer, pos - 1); edit 3222 src/editor/edit.c edit->mark1 = pos; edit 3224 src/editor/edit.c for (; pos < edit->buffer.size; pos++) edit 3228 src/editor/edit.c c1 = edit_buffer_get_byte (&edit->buffer, pos); edit 3229 src/editor/edit.c c2 = edit_buffer_get_byte (&edit->buffer, pos + 1); edit 3235 src/editor/edit.c edit->mark2 = MIN (pos + 1, edit->buffer.size); edit 3237 src/editor/edit.c edit->force |= REDRAW_LINE_ABOVE | REDRAW_AFTER_CURSOR; edit 3243 src/editor/edit.c edit_mark_current_line_cmd (WEdit *edit) edit 3245 src/editor/edit.c edit->mark1 = edit_buffer_get_current_bol (&edit->buffer); edit 3246 src/editor/edit.c edit->mark2 = edit_buffer_get_current_eol (&edit->buffer); edit 3248 src/editor/edit.c edit->force |= REDRAW_LINE_ABOVE | REDRAW_AFTER_CURSOR; edit 3254 src/editor/edit.c edit_delete_line (WEdit *edit) edit 3261 src/editor/edit.c while (edit_buffer_get_current_byte (&edit->buffer) != '\n') edit 3262 src/editor/edit.c (void) edit_delete (edit, TRUE); edit 3269 src/editor/edit.c (void) edit_delete (edit, TRUE); edit 3275 src/editor/edit.c while (edit_buffer_get_previous_byte (&edit->buffer) != '\n') edit 3276 src/editor/edit.c (void) edit_backspace (edit, TRUE); edit 3282 src/editor/edit.c edit_push_key_press (WEdit *edit) edit 3284 src/editor/edit.c edit_push_undo_action (edit, KEY_PRESS + edit->start_display); edit 3285 src/editor/edit.c if (edit->mark2 == -1) edit 3287 src/editor/edit.c edit_push_undo_action (edit, MARK_1 + edit->mark1); edit 3288 src/editor/edit.c edit_push_undo_action (edit, MARK_CURS + edit->end_mark_curs); edit 3295 src/editor/edit.c edit_find_bracket (WEdit *edit) edit 3297 src/editor/edit.c edit->bracket = edit_get_bracket (edit, 1, 10000); edit 3298 src/editor/edit.c if (edit->last_bracket != edit->bracket) edit 3299 src/editor/edit.c edit->force |= REDRAW_PAGE; edit 3300 src/editor/edit.c edit->last_bracket = edit->bracket; edit 3315 src/editor/edit.c edit_execute_key_command (WEdit *edit, long command, int char_for_insertion) edit 3322 src/editor/edit.c edit->force |= REDRAW_CHAR_ONLY | REDRAW_LINE; edit 3327 src/editor/edit.c edit->force |= REDRAW_COMPLETELY; edit 3330 src/editor/edit.c edit_store_macro_cmd (edit); edit 3336 src/editor/edit.c edit_repeat_macro_cmd (edit); edit 3349 src/editor/edit.c edit_push_key_press (edit); edit 3351 src/editor/edit.c edit_execute_cmd (edit, command, char_for_insertion); edit 3352 src/editor/edit.c if (edit->column_highlight != 0) edit 3353 src/editor/edit.c edit->force |= REDRAW_PAGE; edit 3364 src/editor/edit.c edit_execute_cmd (WEdit *edit, long command, int char_for_insertion) edit 3366 src/editor/edit.c WRect *w = &WIDGET (edit)->rect; edit 3370 src/editor/edit.c edit_toggle_fullscreen (edit); edit 3375 src/editor/edit.c if (edit_handle_move_resize (edit, command)) edit 3378 src/editor/edit.c edit->force |= REDRAW_LINE; edit 3382 src/editor/edit.c if (edit->found_len != 0 || edit->column_highlight != 0) edit 3383 src/editor/edit.c edit->force |= REDRAW_PAGE; edit 3417 src/editor/edit.c edit->column_highlight = 0; edit 3418 src/editor/edit.c if (edit->highlight == 0 || (edit->mark2 != -1 && edit->mark1 != edit->mark2)) edit 3420 src/editor/edit.c edit_mark_cmd (edit, TRUE); /* clear */ edit 3421 src/editor/edit.c edit_mark_cmd (edit, FALSE); /* marking on */ edit 3423 src/editor/edit.c edit->highlight = 1; edit 3428 src/editor/edit.c if (edit->highlight != 0) edit 3429 src/editor/edit.c edit_mark_cmd (edit, FALSE); /* clear */ edit 3430 src/editor/edit.c edit->highlight = 0; edit 3436 src/editor/edit.c edit->redo_stack_reset = 0; edit 3437 src/editor/edit.c edit_group_undo (edit); edit 3438 src/editor/edit.c edit->found_len = 0; edit 3439 src/editor/edit.c edit->prev_col = edit_get_col (edit); edit 3440 src/editor/edit.c edit->search_start = edit->buffer.curs1; edit 3446 src/editor/edit.c edit->redo_stack_reset = 0; edit 3447 src/editor/edit.c edit_do_redo (edit); edit 3448 src/editor/edit.c edit->found_len = 0; edit 3449 src/editor/edit.c edit->prev_col = edit_get_col (edit); edit 3450 src/editor/edit.c edit->search_start = edit->buffer.curs1; edit 3454 src/editor/edit.c edit->redo_stack_reset = 1; edit 3460 src/editor/edit.c if (!edit_options.persistent_selections && edit->mark1 != edit->mark2) edit 3461 src/editor/edit.c edit_block_delete_cmd (edit); edit 3463 src/editor/edit.c if (edit->overwrite != 0) edit 3467 src/editor/edit.c if (!mc_global.utf8_display || edit->charpoint == 0) edit 3469 src/editor/edit.c if (edit_buffer_get_current_byte (&edit->buffer) != '\n') edit 3470 src/editor/edit.c edit_delete (edit, FALSE); edit 3472 src/editor/edit.c if (edit_options.cursor_beyond_eol && edit->over_col > 0) edit 3473 src/editor/edit.c edit_insert_over (edit); edit 3498 src/editor/edit.c edit_insert (edit, char_for_insertion); edit 3503 src/editor/edit.c edit_insert (edit, char_for_insertion); edit 3507 src/editor/edit.c format_paragraph (edit, FALSE); edit 3508 src/editor/edit.c edit->force |= REDRAW_PAGE; edit 3511 src/editor/edit.c check_and_wrap_line (edit); edit 3512 src/editor/edit.c edit->found_len = 0; edit 3513 src/editor/edit.c edit->prev_col = edit_get_col (edit); edit 3514 src/editor/edit.c edit->search_start = edit->buffer.curs1; edit 3515 src/editor/edit.c edit_find_bracket (edit); edit 3535 src/editor/edit.c if (!edit_options.persistent_selections && edit->mark2 >= 0) edit 3537 src/editor/edit.c if (edit->column_highlight != 0) edit 3538 src/editor/edit.c edit_push_undo_action (edit, COLUMN_ON); edit 3539 src/editor/edit.c edit->column_highlight = 0; edit 3540 src/editor/edit.c edit_mark_cmd (edit, TRUE); edit 3563 src/editor/edit.c if (edit->mark2 == -1) edit 3570 src/editor/edit.c edit->force |= REDRAW_CHAR_ONLY; edit 3581 src/editor/edit.c if (!edit_options.persistent_selections && edit->mark1 != edit->mark2) edit 3582 src/editor/edit.c edit_block_delete_cmd (edit); edit 3583 src/editor/edit.c else if (edit_options.cursor_beyond_eol && edit->over_col > 0) edit 3584 src/editor/edit.c edit->over_col--; edit 3585 src/editor/edit.c else if (edit_options.backspace_through_tabs && is_in_indent (&edit->buffer)) edit 3587 src/editor/edit.c while (edit_buffer_get_previous_byte (&edit->buffer) != '\n' && edit->buffer.curs1 > 0) edit 3588 src/editor/edit.c edit_backspace (edit, TRUE); edit 3590 src/editor/edit.c else if (edit_options.fake_half_tabs && is_in_indent (&edit->buffer) edit 3591 src/editor/edit.c && right_of_four_spaces (edit)) edit 3596 src/editor/edit.c edit_backspace (edit, TRUE); edit 3599 src/editor/edit.c edit_backspace (edit, FALSE); edit 3603 src/editor/edit.c if (!edit_options.persistent_selections && edit->mark1 != edit->mark2) edit 3604 src/editor/edit.c edit_block_delete_cmd (edit); edit 3607 src/editor/edit.c if (edit_options.cursor_beyond_eol && edit->over_col > 0) edit 3608 src/editor/edit.c edit_insert_over (edit); edit 3610 src/editor/edit.c if (edit_options.fake_half_tabs && is_in_indent (&edit->buffer) edit 3611 src/editor/edit.c && left_of_four_spaces (edit)) edit 3616 src/editor/edit.c edit_delete (edit, TRUE); edit 3619 src/editor/edit.c edit_delete (edit, FALSE); edit 3623 src/editor/edit.c edit->over_col = 0; edit 3624 src/editor/edit.c edit_left_delete_word (edit); edit 3627 src/editor/edit.c if (edit_options.cursor_beyond_eol && edit->over_col > 0) edit 3628 src/editor/edit.c edit_insert_over (edit); edit 3630 src/editor/edit.c edit_right_delete_word (edit); edit 3633 src/editor/edit.c edit_delete_line (edit); edit 3636 src/editor/edit.c edit_delete_to_line_begin (edit); edit 3639 src/editor/edit.c edit_delete_to_line_end (edit); edit 3642 src/editor/edit.c edit->over_col = 0; edit 3645 src/editor/edit.c edit_double_newline (edit); edit 3647 src/editor/edit.c edit_auto_indent (edit); edit 3648 src/editor/edit.c format_paragraph (edit, FALSE); edit 3652 src/editor/edit.c edit_insert (edit, '\n'); edit 3654 src/editor/edit.c edit_auto_indent (edit); edit 3658 src/editor/edit.c edit_insert (edit, '\n'); edit 3662 src/editor/edit.c edit->column_highlight = 1; edit 3666 src/editor/edit.c edit_move_up (edit, w->lines - (edit->fullscreen ? 1 : 2), TRUE); edit 3669 src/editor/edit.c edit->column_highlight = 1; edit 3673 src/editor/edit.c edit_move_down (edit, w->lines - (edit->fullscreen ? 1 : 2), TRUE); edit 3676 src/editor/edit.c edit->column_highlight = 1; edit 3680 src/editor/edit.c if (edit_options.fake_half_tabs && is_in_indent (&edit->buffer) edit 3681 src/editor/edit.c && right_of_four_spaces (edit)) edit 3683 src/editor/edit.c if (edit_options.cursor_beyond_eol && edit->over_col > 0) edit 3684 src/editor/edit.c edit->over_col--; edit 3686 src/editor/edit.c edit_cursor_move (edit, -HALF_TAB_SIZE); edit 3687 src/editor/edit.c edit->force &= (0xFFF - REDRAW_CHAR_ONLY); edit 3690 src/editor/edit.c edit_left_char_move_cmd (edit); edit 3693 src/editor/edit.c edit->column_highlight = 1; edit 3697 src/editor/edit.c if (edit_options.fake_half_tabs && is_in_indent (&edit->buffer) edit 3698 src/editor/edit.c && left_of_four_spaces (edit)) edit 3700 src/editor/edit.c edit_cursor_move (edit, HALF_TAB_SIZE); edit 3701 src/editor/edit.c edit->force &= (0xFFF - REDRAW_CHAR_ONLY); edit 3704 src/editor/edit.c edit_right_char_move_cmd (edit); edit 3708 src/editor/edit.c edit_begin_page (edit); edit 3712 src/editor/edit.c edit_end_page (edit); edit 3716 src/editor/edit.c edit->over_col = 0; edit 3717 src/editor/edit.c edit_left_word_move_cmd (edit); edit 3721 src/editor/edit.c edit->over_col = 0; edit 3722 src/editor/edit.c edit_right_word_move_cmd (edit); edit 3725 src/editor/edit.c edit->column_highlight = 1; edit 3729 src/editor/edit.c edit_move_up (edit, 1, FALSE); edit 3732 src/editor/edit.c edit->column_highlight = 1; edit 3736 src/editor/edit.c edit_move_down (edit, 1, FALSE); edit 3739 src/editor/edit.c edit->column_highlight = 1; edit 3743 src/editor/edit.c edit_move_up_paragraph (edit, FALSE); edit 3746 src/editor/edit.c edit->column_highlight = 1; edit 3750 src/editor/edit.c edit_move_down_paragraph (edit, FALSE); edit 3753 src/editor/edit.c edit->column_highlight = 1; edit 3757 src/editor/edit.c edit_move_up (edit, 1, TRUE); edit 3760 src/editor/edit.c edit->column_highlight = 1; edit 3764 src/editor/edit.c edit_move_down (edit, 1, TRUE); edit 3768 src/editor/edit.c edit_cursor_to_bol (edit); edit 3772 src/editor/edit.c edit_cursor_to_eol (edit); edit 3776 src/editor/edit.c if (edit->mark1 != edit->mark2 && !edit_options.persistent_selections) edit 3778 src/editor/edit.c if (edit->mark2 < 0) edit 3779 src/editor/edit.c edit_mark_cmd (edit, FALSE); edit 3780 src/editor/edit.c edit_move_block_to_right (edit); edit 3785 src/editor/edit.c edit_insert_over (edit); edit 3786 src/editor/edit.c edit_tab_cmd (edit); edit 3789 src/editor/edit.c format_paragraph (edit, FALSE); edit 3790 src/editor/edit.c edit->force |= REDRAW_PAGE; edit 3793 src/editor/edit.c check_and_wrap_line (edit); edit 3798 src/editor/edit.c edit->overwrite = !edit->overwrite; edit 3802 src/editor/edit.c if (edit->mark2 >= 0) edit 3804 src/editor/edit.c if (edit->column_highlight != 0) edit 3805 src/editor/edit.c edit_push_undo_action (edit, COLUMN_ON); edit 3806 src/editor/edit.c edit->column_highlight = 0; edit 3808 src/editor/edit.c edit_mark_cmd (edit, FALSE); edit 3811 src/editor/edit.c if (edit->column_highlight == 0) edit 3812 src/editor/edit.c edit_push_undo_action (edit, COLUMN_OFF); edit 3813 src/editor/edit.c edit->column_highlight = 1; edit 3814 src/editor/edit.c edit_mark_cmd (edit, FALSE); edit 3817 src/editor/edit.c edit_set_markers (edit, 0, edit->buffer.size, 0, 0); edit 3818 src/editor/edit.c edit->force |= REDRAW_PAGE; edit 3821 src/editor/edit.c if (edit->column_highlight != 0) edit 3822 src/editor/edit.c edit_push_undo_action (edit, COLUMN_ON); edit 3823 src/editor/edit.c edit->column_highlight = 0; edit 3824 src/editor/edit.c edit_mark_cmd (edit, TRUE); edit 3827 src/editor/edit.c if (edit->column_highlight != 0) edit 3828 src/editor/edit.c edit_push_undo_action (edit, COLUMN_ON); edit 3829 src/editor/edit.c edit->column_highlight = 0; edit 3830 src/editor/edit.c edit_mark_current_word_cmd (edit); edit 3833 src/editor/edit.c if (edit->column_highlight != 0) edit 3834 src/editor/edit.c edit_push_undo_action (edit, COLUMN_ON); edit 3835 src/editor/edit.c edit->column_highlight = 0; edit 3836 src/editor/edit.c edit_mark_current_line_cmd (edit); edit 3840 src/editor/edit.c book_mark_clear (edit, edit->buffer.curs_line, BOOK_MARK_FOUND_COLOR); edit 3841 src/editor/edit.c if (book_mark_query_color (edit, edit->buffer.curs_line, BOOK_MARK_COLOR)) edit 3842 src/editor/edit.c book_mark_clear (edit, edit->buffer.curs_line, BOOK_MARK_COLOR); edit 3844 src/editor/edit.c book_mark_insert (edit, edit->buffer.curs_line, BOOK_MARK_COLOR); edit 3847 src/editor/edit.c book_mark_flush (edit, BOOK_MARK_COLOR); edit 3848 src/editor/edit.c book_mark_flush (edit, BOOK_MARK_FOUND_COLOR); edit 3849 src/editor/edit.c edit->force |= REDRAW_PAGE; edit 3852 src/editor/edit.c if (edit->book_mark != NULL) edit 3856 src/editor/edit.c p = book_mark_find (edit, edit->buffer.curs_line); edit 3860 src/editor/edit.c if (p->line >= edit->start_line + w->lines || p->line < edit->start_line) edit 3861 src/editor/edit.c edit_move_display (edit, p->line - w->lines / 2); edit 3862 src/editor/edit.c edit_move_to_line (edit, p->line); edit 3867 src/editor/edit.c if (edit->book_mark != NULL) edit 3871 src/editor/edit.c p = book_mark_find (edit, edit->buffer.curs_line); edit 3872 src/editor/edit.c while (p->line == edit->buffer.curs_line) edit 3877 src/editor/edit.c if (p->line >= edit->start_line + w->lines || p->line < edit->start_line) edit 3878 src/editor/edit.c edit_move_display (edit, p->line - w->lines / 2); edit 3879 src/editor/edit.c edit_move_to_line (edit, p->line); edit 3886 src/editor/edit.c edit_move_to_top (edit); edit 3890 src/editor/edit.c edit_move_to_bottom (edit); edit 3894 src/editor/edit.c if (edit_options.cursor_beyond_eol && edit->over_col > 0) edit 3895 src/editor/edit.c edit_insert_over (edit); edit 3896 src/editor/edit.c edit_block_copy_cmd (edit); edit 3899 src/editor/edit.c edit_block_delete_cmd (edit); edit 3902 src/editor/edit.c edit_block_move_cmd (edit); edit 3906 src/editor/edit.c if (edit->mark1 != edit->mark2) edit 3907 src/editor/edit.c edit_move_block_to_left (edit); edit 3910 src/editor/edit.c if (edit->mark1 != edit->mark2) edit 3911 src/editor/edit.c edit_move_block_to_right (edit); edit 3914 src/editor/edit.c edit_copy_to_X_buf_cmd (edit); edit 3917 src/editor/edit.c edit_cut_to_X_buf_cmd (edit); edit 3921 src/editor/edit.c if (!edit_options.persistent_selections && edit->mark1 != edit->mark2) edit 3922 src/editor/edit.c edit_block_delete_cmd (edit); edit 3923 src/editor/edit.c if (edit_options.cursor_beyond_eol && edit->over_col > 0) edit 3924 src/editor/edit.c edit_insert_over (edit); edit 3925 src/editor/edit.c edit_paste_from_X_buf_cmd (edit); edit 3926 src/editor/edit.c if (!edit_options.persistent_selections && edit->mark2 >= 0) edit 3928 src/editor/edit.c if (edit->column_highlight != 0) edit 3929 src/editor/edit.c edit_push_undo_action (edit, COLUMN_ON); edit 3930 src/editor/edit.c edit->column_highlight = 0; edit 3931 src/editor/edit.c edit_mark_cmd (edit, TRUE); edit 3935 src/editor/edit.c edit_paste_from_history (edit); edit 3939 src/editor/edit.c edit_save_as_cmd (edit); edit 3942 src/editor/edit.c edit_save_confirm_cmd (edit); edit 3945 src/editor/edit.c edit_save_block_cmd (edit); edit 3948 src/editor/edit.c edit_insert_file_cmd (edit); edit 3952 src/editor/edit.c edit_load_back_cmd (edit); edit 3955 src/editor/edit.c edit_load_forward_cmd (edit); edit 3959 src/editor/edit.c edit_syntax_dialog (edit); edit 3963 src/editor/edit.c edit_search_cmd (edit, FALSE); edit 3966 src/editor/edit.c edit_search_cmd (edit, TRUE); edit 3969 src/editor/edit.c edit_replace_cmd (edit, FALSE); edit 3972 src/editor/edit.c edit_replace_cmd (edit, TRUE); edit 3976 src/editor/edit.c if (edit->mark1 != edit->mark2 && !edit_options.persistent_selections) edit 3977 src/editor/edit.c edit_move_block_to_left (edit); edit 3979 src/editor/edit.c edit_complete_word_cmd (edit); edit 3982 src/editor/edit.c edit_get_match_keyword_cmd (edit); edit 3987 src/editor/edit.c edit_suggest_current_word (edit); edit 3990 src/editor/edit.c edit_spellcheck_file (edit); edit 4005 src/editor/edit.c edit_print_string (edit, s); edit 4006 src/editor/edit.c edit->force |= REDRAW_PAGE; edit 4010 src/editor/edit.c edit_goto_cmd (edit); edit 4013 src/editor/edit.c format_paragraph (edit, TRUE); edit 4014 src/editor/edit.c edit->force |= REDRAW_PAGE; edit 4017 src/editor/edit.c edit_delete_macro_cmd (edit); edit 4020 src/editor/edit.c edit_goto_matching_bracket (edit); edit 4023 src/editor/edit.c edit_user_menu (edit, NULL, -1); edit 4026 src/editor/edit.c edit_sort_cmd (edit); edit 4029 src/editor/edit.c edit_ext_cmd (edit); edit 4032 src/editor/edit.c edit_mail_dialog (edit); edit 4036 src/editor/edit.c edit_select_codepage_cmd (edit); edit 4040 src/editor/edit.c edit_insert_literal_cmd (edit); edit 4043 src/editor/edit.c edit_begin_end_macro_cmd (edit); edit 4046 src/editor/edit.c edit_begin_end_repeat_cmd (edit); edit 4049 src/editor/edit.c WIDGET (edit)->ext_mode = TRUE; edit 4057 src/editor/edit.c edit_block_process_cmd (edit, command - CK_PipeBlock (0)); edit 4067 src/editor/edit.c edit->prev_col = edit_get_col (edit); edit 4097 src/editor/edit.c edit->search_start = edit->buffer.curs1; edit 4098 src/editor/edit.c edit->found_len = 0; edit 4101 src/editor/edit.c edit->found_len = 0; edit 4102 src/editor/edit.c edit->prev_col = edit_get_col (edit); edit 4103 src/editor/edit.c edit->search_start = edit->buffer.curs1; edit 4105 src/editor/edit.c edit_find_bracket (edit); edit 4117 src/editor/edit.c format_paragraph (edit, FALSE); edit 4118 src/editor/edit.c edit->force |= REDRAW_PAGE; edit 4150 src/editor/edit.c edit_move_up (WEdit *edit, long i, gboolean do_scroll) edit 4152 src/editor/edit.c edit_move_updown (edit, i, do_scroll, TRUE); edit 4159 src/editor/edit.c edit_move_down (WEdit *edit, long i, gboolean do_scroll) edit 4161 src/editor/edit.c edit_move_updown (edit, i, do_scroll, FALSE); edit 4249 src/editor/edit.c edit_get_file_name (const WEdit *edit) edit 4251 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 149 src/editor/editcmd.c if (!IS_PATH_SEP (*start_filename) && edit->dir_vpath != NULL) edit 150 src/editor/editcmd.c real_filename_vpath = vfs_path_append_vpath_new (edit->dir_vpath, filename_vpath, NULL); edit 175 src/editor/editcmd.c if (this_save_mode == EDIT_QUICK_SAVE && edit->skip_detach_prompt == 0 && sb.st_nlink > 1) edit 186 src/editor/editcmd.c edit->skip_detach_prompt = 1; edit 195 src/editor/editcmd.c if (edit->stat1.st_mtime != 0 && edit->stat1.st_mtime != sb.st_mtime) edit 239 src/editor/editcmd.c (void) mc_chown (savename_vpath, edit->stat1.st_uid, edit->stat1.st_gid); edit 240 src/editor/editcmd.c (void) mc_chmod (savename_vpath, edit->stat1.st_mode); edit 241 src/editor/editcmd.c if (edit->attrs_ok) edit 242 src/editor/editcmd.c (void) mc_fsetflags (savename_vpath, edit->attrs); edit 244 src/editor/editcmd.c fd = mc_open (savename_vpath, O_CREAT | O_WRONLY | O_TRUNC | O_BINARY, edit->stat1.st_mode); edit 259 src/editor/editcmd.c filelen = edit_write_stream (edit, file); edit 279 src/editor/editcmd.c else if (edit->lb == LB_ASIS) edit 281 src/editor/editcmd.c filelen = edit_buffer_write_file (&edit->buffer, fd); edit 283 src/editor/editcmd.c if (filelen != edit->buffer.size) edit 293 src/editor/editcmd.c if (mc_stat (savename_vpath, &edit->stat1) == -1) edit 307 src/editor/editcmd.c filelen = edit_write_stream (edit, file); edit 317 src/editor/editcmd.c if (filelen != edit->buffer.size) edit 374 src/editor/editcmd.c edit_get_save_file_as (WEdit *edit) edit 390 src/editor/editcmd.c vfs_path_as_str (edit->filename_vpath), "save-as", edit 411 src/editor/editcmd.c edit->lb = cur_lb; edit 426 src/editor/editcmd.c edit_save_cmd (WEdit *edit) edit 430 src/editor/editcmd.c if (edit->locked == 0 && edit->delete_file == 0) edit 431 src/editor/editcmd.c save_lock = lock_file (edit->filename_vpath); edit 433 src/editor/editcmd.c const int res = edit_save_file (edit, edit->filename_vpath); edit 436 src/editor/editcmd.c if ((res > 0 && edit->locked != 0) || save_lock != 0) edit 437 src/editor/editcmd.c edit->locked = unlock_file (edit->filename_vpath); edit 441 src/editor/editcmd.c return edit_save_as_cmd (edit); edit 445 src/editor/editcmd.c edit->delete_file = 0; edit 446 src/editor/editcmd.c edit->modified = 0; edit 449 src/editor/editcmd.c edit->force |= REDRAW_COMPLETELY; edit 457 src/editor/editcmd.c edit_delete_column_of_text (WEdit *edit, off_t m1, off_t m2) edit 463 src/editor/editcmd.c n = edit_buffer_get_forward_offset (&edit->buffer, m1, 0, m2) + 1; edit 464 src/editor/editcmd.c r = edit_buffer_get_bol (&edit->buffer, m1); edit 465 src/editor/editcmd.c c = (long) edit_move_forward3 (edit, r, 0, m1); edit 466 src/editor/editcmd.c r = edit_buffer_get_bol (&edit->buffer, m2); edit 467 src/editor/editcmd.c d = (long) edit_move_forward3 (edit, r, 0, m2); edit 468 src/editor/editcmd.c b = MAX (MIN (c, d), MIN (edit->column1, edit->column2)); edit 469 src/editor/editcmd.c c = MAX (c, MAX (edit->column1, edit->column2)); edit 475 src/editor/editcmd.c r = edit_buffer_get_current_bol (&edit->buffer); edit 476 src/editor/editcmd.c p = edit_move_forward3 (edit, r, b, 0); edit 477 src/editor/editcmd.c q = edit_move_forward3 (edit, r, c, 0); edit 480 src/editor/editcmd.c edit_cursor_move (edit, p - edit->buffer.curs1); edit 483 src/editor/editcmd.c if (edit_buffer_get_current_byte (&edit->buffer) != '\n') edit 484 src/editor/editcmd.c edit_delete (edit, TRUE); edit 489 src/editor/editcmd.c r = edit_buffer_get_forward_offset (&edit->buffer, edit->buffer.curs1, 1, 0); edit 490 src/editor/editcmd.c edit_cursor_move (edit, r - edit->buffer.curs1); edit 499 src/editor/editcmd.c edit_block_delete (WEdit *edit, off_t start_mark, off_t end_mark) edit 504 src/editor/editcmd.c if (edit->column_highlight && edit->mark2 < 0) edit 505 src/editor/editcmd.c edit_mark_cmd (edit, FALSE); edit 514 src/editor/editcmd.c c1 = MIN (edit->column1, edit->column2); edit 515 src/editor/editcmd.c c2 = MAX (edit->column1, edit->column2); edit 516 src/editor/editcmd.c edit->column1 = c1; edit 517 src/editor/editcmd.c edit->column2 = c2; edit 519 src/editor/editcmd.c edit_push_markers (edit); edit 521 src/editor/editcmd.c curs_line = edit->buffer.curs_line; edit 523 src/editor/editcmd.c curs_pos = edit->curs_col + edit->over_col; edit 526 src/editor/editcmd.c edit_cursor_move (edit, start_mark - edit->buffer.curs1); edit 527 src/editor/editcmd.c edit_scroll_screen_over_cursor (edit); edit 531 src/editor/editcmd.c if (edit->column_highlight) edit 536 src/editor/editcmd.c if (edit->mark2 < 0) edit 537 src/editor/editcmd.c edit_mark_cmd (edit, FALSE); edit 538 src/editor/editcmd.c edit_delete_column_of_text (edit, start_mark, end_mark); edit 540 src/editor/editcmd.c edit_move_to_line (edit, curs_line); edit 542 src/editor/editcmd.c b = edit_buffer_get_current_bol (&edit->buffer); edit 543 src/editor/editcmd.c e = edit_buffer_get_current_eol (&edit->buffer); edit 544 src/editor/editcmd.c line_width = edit_move_forward3 (edit, b, 0, e); edit 546 src/editor/editcmd.c edit->over_col = curs_pos - line_width; edit 553 src/editor/editcmd.c edit_delete (edit, TRUE); edit 557 src/editor/editcmd.c edit_set_markers (edit, 0, 0, 0, 0); edit 558 src/editor/editcmd.c edit->force |= REDRAW_PAGE; edit 567 src/editor/editcmd.c edit_get_block (WEdit *edit, off_t start, off_t finish, off_t *l) edit 573 src/editor/editcmd.c if (edit->column_highlight) edit 583 src/editor/editcmd.c x = edit_buffer_get_bol (&edit->buffer, start); edit 584 src/editor/editcmd.c x = edit_move_forward3 (edit, x, 0, start); edit 585 src/editor/editcmd.c c = edit_buffer_get_byte (&edit->buffer, start); edit 586 src/editor/editcmd.c if ((x >= edit->column1 && x < edit->column2) edit 587 src/editor/editcmd.c || (x >= edit->column2 && x < edit->column1) || c == '\n') edit 599 src/editor/editcmd.c *s++ = edit_buffer_get_byte (&edit->buffer, start); edit 611 src/editor/editcmd.c edit_save_block_to_clip_file (WEdit *edit, off_t start, off_t finish) edit 617 src/editor/editcmd.c ret = edit_save_block (edit, tmp, start, finish); edit 672 src/editor/editcmd.c edit_insert_column_of_text (WEdit *edit, unsigned char *data, off_t size, long width, edit 678 src/editor/editcmd.c cursor = edit->buffer.curs1; edit 679 src/editor/editcmd.c col = edit_get_col (edit); edit 684 src/editor/editcmd.c edit_insert (edit, data[i]); edit 690 src/editor/editcmd.c if (edit_buffer_get_current_byte (&edit->buffer) != '\n') edit 692 src/editor/editcmd.c for (l = width - (edit_get_col (edit) - col); l > 0; l -= space_width) edit 693 src/editor/editcmd.c edit_insert (edit, ' '); edit 695 src/editor/editcmd.c for (p = edit->buffer.curs1;; p++) edit 697 src/editor/editcmd.c if (p == edit->buffer.size) edit 699 src/editor/editcmd.c edit_cursor_move (edit, edit->buffer.size - edit->buffer.curs1); edit 700 src/editor/editcmd.c edit_insert_ahead (edit, '\n'); edit 704 src/editor/editcmd.c if (edit_buffer_get_byte (&edit->buffer, p) == '\n') edit 710 src/editor/editcmd.c edit_cursor_move (edit, edit_move_forward3 (edit, p, col, 0) - edit->buffer.curs1); edit 712 src/editor/editcmd.c for (l = col - edit_get_col (edit); l >= space_width; l -= space_width) edit 713 src/editor/editcmd.c edit_insert (edit, ' '); edit 720 src/editor/editcmd.c *end_pos = edit->buffer.curs1; edit 721 src/editor/editcmd.c edit_cursor_move (edit, cursor - edit->buffer.curs1); edit 740 src/editor/editcmd.c WEdit *edit = EDIT (data); edit 743 src/editor/editcmd.c edit_load_syntax (edit, NULL, edit->syntax_type); edit 744 src/editor/editcmd.c edit->force |= REDRAW_PAGE; edit 889 src/editor/editcmd.c edit_set_filename (WEdit *edit, const vfs_path_t *name_vpath) edit 891 src/editor/editcmd.c vfs_path_free (edit->filename_vpath, TRUE); edit 892 src/editor/editcmd.c edit->filename_vpath = vfs_path_clone (name_vpath); edit 894 src/editor/editcmd.c if (edit->dir_vpath == NULL) edit 895 src/editor/editcmd.c edit->dir_vpath = vfs_path_clone (vfs_get_raw_current_dir ()); edit 903 src/editor/editcmd.c edit_save_as_cmd (WEdit *edit) edit 911 src/editor/editcmd.c if (!edit_check_newline (&edit->buffer)) edit 914 src/editor/editcmd.c exp_vpath = edit_get_save_file_as (edit); edit 915 src/editor/editcmd.c edit_push_undo_action (edit, KEY_PRESS + edit->start_display); edit 921 src/editor/editcmd.c if (!vfs_path_equal (edit->filename_vpath, exp_vpath)) edit 937 src/editor/editcmd.c edit->stat1.st_mode |= S_IWUSR; edit 951 src/editor/editcmd.c else if (edit->locked == 0 && edit->delete_file == 0) edit 958 src/editor/editcmd.c edit->stat1.st_mode |= S_IWUSR; edit 960 src/editor/editcmd.c rv = edit_save_file (edit, exp_vpath); edit 969 src/editor/editcmd.c if (edit->locked != 0) edit 970 src/editor/editcmd.c edit->locked = unlock_file (edit->filename_vpath); edit 972 src/editor/editcmd.c else if (edit->locked != 0 || save_lock != 0) edit 973 src/editor/editcmd.c edit->locked = unlock_file (edit->filename_vpath); edit 975 src/editor/editcmd.c edit_set_filename (edit, exp_vpath); edit 976 src/editor/editcmd.c if (edit->lb != LB_ASIS) edit 977 src/editor/editcmd.c edit_reload (edit, exp_vpath); edit 978 src/editor/editcmd.c edit->modified = 0; edit 979 src/editor/editcmd.c edit->delete_file = 0; edit 981 src/editor/editcmd.c edit_load_syntax (edit, NULL, edit->syntax_type); edit 999 src/editor/editcmd.c edit->force |= REDRAW_COMPLETELY; edit 1007 src/editor/editcmd.c edit_save_confirm_cmd (WEdit *edit) edit 1009 src/editor/editcmd.c if (edit->filename_vpath == NULL) edit 1010 src/editor/editcmd.c return edit_save_as_cmd (edit); edit 1012 src/editor/editcmd.c if (!edit_check_newline (&edit->buffer)) edit 1021 src/editor/editcmd.c vfs_path_as_str (edit->filename_vpath)); edit 1028 src/editor/editcmd.c return edit_save_cmd (edit); edit 1242 src/editor/editcmd.c edit_close_cmd (WEdit *edit) edit 1246 src/editor/editcmd.c ret = (edit != NULL) && edit_ok_to_exit (edit); edit 1250 src/editor/editcmd.c Widget *w = WIDGET (edit); edit 1253 src/editor/editcmd.c if (edit->locked != 0) edit 1254 src/editor/editcmd.c edit->locked = unlock_file (edit->filename_vpath); edit 1260 src/editor/editcmd.c edit = EDIT (g->current->data); edit 1263 src/editor/editcmd.c edit = edit_find_editor (DIALOG (g)); edit 1264 src/editor/editcmd.c if (edit != NULL) edit 1265 src/editor/editcmd.c widget_select (WIDGET (edit)); edit 1269 src/editor/editcmd.c if (edit != NULL) edit 1270 src/editor/editcmd.c edit->force |= REDRAW_COMPLETELY; edit 1278 src/editor/editcmd.c edit_block_copy_cmd (WEdit *edit) edit 1280 src/editor/editcmd.c off_t start_mark, end_mark, current = edit->buffer.curs1; edit 1286 src/editor/editcmd.c edit_update_curs_col (edit); edit 1287 src/editor/editcmd.c if (!eval_marks (edit, &start_mark, &end_mark)) edit 1290 src/editor/editcmd.c copy_buf = edit_get_block (edit, start_mark, end_mark, &size); edit 1294 src/editor/editcmd.c edit_push_markers (edit); edit 1296 src/editor/editcmd.c if (edit->column_highlight) edit 1300 src/editor/editcmd.c col_delta = labs (edit->column2 - edit->column1); edit 1301 src/editor/editcmd.c edit_insert_column_of_text (edit, copy_buf, size, col_delta, &mark1, &mark2, &c1, &c2); edit 1308 src/editor/editcmd.c edit_insert_ahead (edit, copy_buf[size]); edit 1312 src/editor/editcmd.c edit_cursor_move (edit, size_orig); edit 1316 src/editor/editcmd.c edit_scroll_screen_over_cursor (edit); edit 1318 src/editor/editcmd.c if (edit->column_highlight) edit 1319 src/editor/editcmd.c edit_set_markers (edit, edit->buffer.curs1, mark2, c1, c2); edit 1321 src/editor/editcmd.c edit_set_markers (edit, start_mark, end_mark + end_mark - start_mark, 0, 0); edit 1323 src/editor/editcmd.c edit->force |= REDRAW_PAGE; edit 1330 src/editor/editcmd.c edit_block_move_cmd (WEdit *edit) edit 1336 src/editor/editcmd.c if (!eval_marks (edit, &start_mark, &end_mark)) edit 1339 src/editor/editcmd.c if (!edit->column_highlight && edit->buffer.curs1 > start_mark && edit->buffer.curs1 < end_mark) edit 1342 src/editor/editcmd.c if (edit->mark2 < 0) edit 1343 src/editor/editcmd.c edit_mark_cmd (edit, FALSE); edit 1344 src/editor/editcmd.c edit_push_markers (edit); edit 1346 src/editor/editcmd.c if (edit->column_highlight) edit 1354 src/editor/editcmd.c c1 = MIN (edit->column1, edit->column2); edit 1355 src/editor/editcmd.c c2 = MAX (edit->column1, edit->column2); edit 1358 src/editor/editcmd.c edit_update_curs_col (edit); edit 1360 src/editor/editcmd.c x = edit->curs_col; edit 1361 src/editor/editcmd.c x2 = x + edit->over_col; edit 1364 src/editor/editcmd.c b1 = edit_buffer_get_eol (&edit->buffer, edit->buffer.curs1); edit 1365 src/editor/editcmd.c b2 = edit_buffer_get_eol (&edit->buffer, start_mark); edit 1369 src/editor/editcmd.c if (edit->buffer.curs1 > start_mark edit 1370 src/editor/editcmd.c && edit->buffer.curs1 < edit_buffer_get_eol (&edit->buffer, end_mark)) edit 1378 src/editor/editcmd.c copy_buf = edit_get_block (edit, start_mark, end_mark, &size); edit 1381 src/editor/editcmd.c edit_block_delete_cmd (edit); edit 1383 src/editor/editcmd.c edit->over_col = MAX (0, edit->over_col - b_width); edit 1385 src/editor/editcmd.c b1 = edit_buffer_get_current_bol (&edit->buffer); edit 1386 src/editor/editcmd.c current = edit_move_forward3 (edit, b1, x, 0); edit 1387 src/editor/editcmd.c edit_cursor_move (edit, current - edit->buffer.curs1); edit 1388 src/editor/editcmd.c edit_scroll_screen_over_cursor (edit); edit 1391 src/editor/editcmd.c if (edit_options.cursor_beyond_eol && edit->over_col > 0) edit 1392 src/editor/editcmd.c edit_insert_over (edit); edit 1394 src/editor/editcmd.c edit_insert_column_of_text (edit, copy_buf, size, b_width, &mark1, &mark2, &c1, &c2); edit 1395 src/editor/editcmd.c edit_set_markers (edit, mark1, mark2, c1, c2); edit 1402 src/editor/editcmd.c current = edit->buffer.curs1; edit 1404 src/editor/editcmd.c edit_cursor_move (edit, start_mark - edit->buffer.curs1); edit 1405 src/editor/editcmd.c edit_scroll_screen_over_cursor (edit); edit 1408 src/editor/editcmd.c copy_buf[end_mark - count - 1] = edit_delete (edit, TRUE); edit 1410 src/editor/editcmd.c edit_scroll_screen_over_cursor (edit); edit 1411 src/editor/editcmd.c x = current > edit->buffer.curs1 ? end_mark - start_mark : 0; edit 1412 src/editor/editcmd.c edit_cursor_move (edit, current - edit->buffer.curs1 - x); edit 1413 src/editor/editcmd.c edit_scroll_screen_over_cursor (edit); edit 1416 src/editor/editcmd.c edit_insert_ahead (edit, copy_buf[end_mark - count - 1]); edit 1418 src/editor/editcmd.c edit_set_markers (edit, edit->buffer.curs1, edit->buffer.curs1 + end_mark - start_mark, 0, edit 1423 src/editor/editcmd.c edit_cursor_move (edit, count_orig - start_mark); edit 1426 src/editor/editcmd.c edit_scroll_screen_over_cursor (edit); edit 1428 src/editor/editcmd.c edit->force |= REDRAW_PAGE; edit 1435 src/editor/editcmd.c edit_block_delete_cmd (WEdit *edit) edit 1439 src/editor/editcmd.c if (eval_marks (edit, &start_mark, &end_mark)) edit 1440 src/editor/editcmd.c return edit_block_delete (edit, start_mark, end_mark); edit 1442 src/editor/editcmd.c edit_delete_line (edit); edit 1455 src/editor/editcmd.c edit_ok_to_exit (WEdit *edit) edit 1461 src/editor/editcmd.c if (edit->modified == 0) edit 1464 src/editor/editcmd.c if (edit->filename_vpath != NULL) edit 1465 src/editor/editcmd.c fname = vfs_path_as_str (edit->filename_vpath); edit 1494 src/editor/editcmd.c if (!mc_global.midnight_shutdown && !edit_check_newline (&edit->buffer)) edit 1496 src/editor/editcmd.c edit_push_markers (edit); edit 1497 src/editor/editcmd.c edit_set_markers (edit, 0, 0, 0, 0); edit 1498 src/editor/editcmd.c if (!edit_save_cmd (edit) || mc_global.midnight_shutdown) edit 1516 src/editor/editcmd.c edit_save_block (WEdit *edit, const char *filename, off_t start, off_t finish) edit 1529 src/editor/editcmd.c if (edit->column_highlight) edit 1538 src/editor/editcmd.c p = block = edit_get_block (edit, start, finish, &len); edit 1563 src/editor/editcmd.c buf[i - start] = edit_buffer_get_byte (&edit->buffer, i); edit 1577 src/editor/editcmd.c edit_paste_from_history (WEdit *edit) edit 1579 src/editor/editcmd.c (void) edit; edit 1587 src/editor/editcmd.c edit_copy_to_X_buf_cmd (WEdit *edit) edit 1591 src/editor/editcmd.c if (!eval_marks (edit, &start_mark, &end_mark)) edit 1594 src/editor/editcmd.c if (!edit_save_block_to_clip_file (edit, start_mark, end_mark)) edit 1603 src/editor/editcmd.c edit_mark_cmd (edit, TRUE); edit 1611 src/editor/editcmd.c edit_cut_to_X_buf_cmd (WEdit *edit) edit 1615 src/editor/editcmd.c if (!eval_marks (edit, &start_mark, &end_mark)) edit 1618 src/editor/editcmd.c if (!edit_save_block_to_clip_file (edit, start_mark, end_mark)) edit 1626 src/editor/editcmd.c edit_block_delete_cmd (edit); edit 1627 src/editor/editcmd.c edit_mark_cmd (edit, TRUE); edit 1635 src/editor/editcmd.c edit_paste_from_X_buf_cmd (WEdit *edit) edit 1643 src/editor/editcmd.c ret = (edit_insert_file (edit, tmp) >= 0); edit 1656 src/editor/editcmd.c edit_goto_cmd (WEdit *edit) edit 1680 src/editor/editcmd.c l = edit->buffer.lines + l + 2; edit 1682 src/editor/editcmd.c edit_move_display (edit, l - WIDGET (edit)->rect.lines / 2 - 1); edit 1683 src/editor/editcmd.c edit_move_to_line (edit, l - 1); edit 1684 src/editor/editcmd.c edit->force |= REDRAW_COMPLETELY; edit 1694 src/editor/editcmd.c edit_save_block_cmd (WEdit *edit) edit 1700 src/editor/editcmd.c if (!eval_marks (edit, &start_mark, &end_mark)) edit 1708 src/editor/editcmd.c edit_push_undo_action (edit, KEY_PRESS + edit->start_display); edit 1712 src/editor/editcmd.c if (edit_save_block (edit, exp, start_mark, end_mark)) edit 1717 src/editor/editcmd.c edit->force |= REDRAW_COMPLETELY; edit 1729 src/editor/editcmd.c edit_insert_file_cmd (WEdit *edit) edit 1740 src/editor/editcmd.c edit_push_undo_action (edit, KEY_PRESS + edit->start_display); edit 1747 src/editor/editcmd.c ret = (edit_insert_file (edit, exp_vpath) >= 0); edit 1756 src/editor/editcmd.c edit->force |= REDRAW_COMPLETELY; edit 1764 src/editor/editcmd.c edit_sort_cmd (WEdit *edit) edit 1770 src/editor/editcmd.c if (!eval_marks (edit, &start_mark, &end_mark)) edit 1777 src/editor/editcmd.c edit_save_block (edit, tmp, start_mark, end_mark); edit 1813 src/editor/editcmd.c edit->force |= REDRAW_COMPLETELY; edit 1815 src/editor/editcmd.c if (!edit_block_delete_cmd (edit)) edit 1822 src/editor/editcmd.c edit_insert_file (edit, tmp_vpath); edit 1836 src/editor/editcmd.c edit_ext_cmd (WEdit *edit) edit 1864 src/editor/editcmd.c edit->force |= REDRAW_COMPLETELY; edit 1870 src/editor/editcmd.c edit_insert_file (edit, tmp_vpath); edit 1883 src/editor/editcmd.c edit_block_process_cmd (WEdit *edit, int macro_number) edit 1890 src/editor/editcmd.c edit_user_menu (edit, macros_fname, 0); edit 1893 src/editor/editcmd.c edit->force |= REDRAW_COMPLETELY; edit 1899 src/editor/editcmd.c edit_mail_dialog (WEdit *edit) edit 1931 src/editor/editcmd.c pipe_mail (&edit->buffer, mail_to, mail_subject, mail_cc); edit 1942 src/editor/editcmd.c edit_select_codepage_cmd (WEdit *edit) edit 1945 src/editor/editcmd.c edit_set_codeset (edit); edit 1947 src/editor/editcmd.c edit->force = REDRAW_PAGE; edit 1948 src/editor/editcmd.c widget_draw (WIDGET (edit)); edit 1955 src/editor/editcmd.c edit_insert_literal_cmd (WEdit *edit) edit 1961 src/editor/editcmd.c edit_execute_key_command (edit, -1, ascii_alpha_to_cntrl (char_for_insertion)); edit 1967 src/editor/editcmd.c edit_load_forward_cmd (WEdit *edit) edit 1969 src/editor/editcmd.c if (edit->modified != 0 edit 1975 src/editor/editcmd.c edit->force |= REDRAW_COMPLETELY; edit 1987 src/editor/editcmd.c return edit_reload_line (edit, &edit_history_moveto[edit_stack_iterator]); edit 1995 src/editor/editcmd.c edit_load_back_cmd (WEdit *edit) edit 1997 src/editor/editcmd.c if (edit->modified != 0 edit 2003 src/editor/editcmd.c edit->force |= REDRAW_COMPLETELY; edit 2013 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 ? 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 374 src/editor/editcomplete.c (edit->fullscreen != 0 ? 0 : 1) + 1; edit 428 src/editor/editcomplete.c edit_complete_word_cmd (WEdit *edit) edit 438 src/editor/editcomplete.c if (!edit_buffer_find_word_start (&edit->buffer, &word_start, &word_len)) edit 445 src/editor/editcomplete.c g_string_append_c (match_expr, edit_buffer_get_byte (&edit->buffer, word_start + i)); edit 450 src/editor/editcomplete.c compl = edit_collect_completions (edit, word_start, word_len, match_expr->str, &max_width); edit 464 src/editor/editcomplete.c edit_complete_word_insert_recoded_completion (edit, curr_compl->str, word_len); edit 473 src/editor/editcomplete.c curr_compl = edit_completion_dialog_show (edit, compl, max_width); edit 476 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 != 0 ? '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 != 0 ? '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 != 0 ? '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 != 0) 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 == 0) 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 ? 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 == 0) 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 != 0) 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 == 0) 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 == 0) 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 86 src/editor/editsearch.c edit_dialog_search_show (WEdit *edit) edit 156 src/editor/editsearch.c edit_search_deinit (edit); edit 157 src/editor/editsearch.c edit->last_search_string = search_text; edit 159 src/editor/editsearch.c return edit_search_init (edit, edit->last_search_string); edit 165 src/editor/editsearch.c edit_dialog_replace_show (WEdit *edit, const char *search_default, const char *replace_default, edit 210 src/editor/editsearch.c edit->replace_mode = 0; edit 224 src/editor/editsearch.c edit_dialog_replace_prompt_show (WEdit *edit, char *from_text, char *to_text, int xpos, int ypos) edit 226 src/editor/editsearch.c Widget *w = WIDGET (edit); edit 241 src/editor/editsearch.c if ((edit->curs_row >= ypos - 1) && (edit->curs_row <= ypos + dlg_height - 1)) edit 293 src/editor/editsearch.c edit_search_get_current_end_line_char (const WEdit *edit) edit 295 src/editor/editsearch.c switch (edit->lb) edit 401 src/editor/editsearch.c edit_search_fix_search_start_if_selection (WEdit *edit) edit 409 src/editor/editsearch.c if (!eval_marks (edit, &start_mark, &end_mark)) edit 414 src/editor/editsearch.c if (edit->search_start > end_mark || edit->search_start <= start_mark) edit 415 src/editor/editsearch.c edit->search_start = end_mark; edit 419 src/editor/editsearch.c if (edit->search_start < start_mark || edit->search_start >= end_mark) edit 420 src/editor/editsearch.c edit->search_start = start_mark; edit 429 src/editor/editsearch.c WEdit *edit = esm->edit; edit 430 src/editor/editsearch.c off_t search_start = edit->search_start; edit 433 src/editor/editsearch.c off_t end_mark = edit->buffer.size; edit 436 src/editor/editsearch.c end_string_symbol = edit_search_get_current_end_line_char (edit); edit 441 src/editor/editsearch.c if (!eval_marks (edit, &start_mark, &end_mark)) edit 443 src/editor/editsearch.c mc_search_set_error (edit->search, MC_SEARCH_E_NOTFOUND, "%s", _(STR_E_NOTFOUND)); edit 448 src/editor/editsearch.c if ((edit->search_line_type & MC_SEARCH_LINE_BEGIN) != 0 edit 450 src/editor/editsearch.c || edit_buffer_get_byte (&edit->buffer, start_mark - 1) != end_string_symbol)) edit 452 src/editor/editsearch.c edit_calculate_start_of_next_line (&edit->buffer, start_mark, edit->buffer.size, edit 455 src/editor/editsearch.c if ((edit->search_line_type & MC_SEARCH_LINE_END) != 0 edit 456 src/editor/editsearch.c && (end_mark - 1 != edit->buffer.size edit 457 src/editor/editsearch.c || edit_buffer_get_byte (&edit->buffer, end_mark) != end_string_symbol)) edit 459 src/editor/editsearch.c edit_calculate_end_of_previous_line (&edit->buffer, end_mark, end_string_symbol); edit 463 src/editor/editsearch.c mc_search_set_error (edit->search, MC_SEARCH_E_NOTFOUND, "%s", _(STR_E_NOTFOUND)); edit 468 src/editor/editsearch.c end_mark = MAX (1, edit->buffer.curs1) - 1; edit 476 src/editor/editsearch.c if ((edit->search_line_type & MC_SEARCH_LINE_BEGIN) != 0) edit 478 src/editor/editsearch.c edit_calculate_start_of_current_line (&edit->buffer, search_start, edit 485 src/editor/editsearch.c if (search_end > (off_t) (search_start + edit->search->original.str->len) edit 486 src/editor/editsearch.c && mc_search_is_fixed_search_str (edit->search)) edit 487 src/editor/editsearch.c search_end = search_start + edit->search->original.str->len; edit 489 src/editor/editsearch.c ok = mc_search_run (edit->search, (void *) esm, search_start, search_end, len); edit 491 src/editor/editsearch.c if (ok && edit->search->normal_offset == search_start) edit 496 src/editor/editsearch.c if (!ok && edit->search->error != MC_SEARCH_E_NOTFOUND) edit 499 src/editor/editsearch.c if ((edit->search_line_type & MC_SEARCH_LINE_BEGIN) != 0) edit 501 src/editor/editsearch.c edit_calculate_start_of_previous_line (&edit->buffer, search_start, edit 507 src/editor/editsearch.c mc_search_set_error (edit->search, MC_SEARCH_E_NOTFOUND, "%s", _(STR_E_NOTFOUND)); edit 512 src/editor/editsearch.c if ((edit->search_line_type & MC_SEARCH_LINE_BEGIN) != 0 && search_start != start_mark) edit 514 src/editor/editsearch.c edit_calculate_start_of_next_line (&edit->buffer, search_start, end_mark, edit 517 src/editor/editsearch.c return mc_search_run (edit->search, (void *) esm, search_start, end_mark, len); edit 561 src/editor/editsearch.c edit_search_show_error (const WEdit *edit, const char *title) edit 563 src/editor/editsearch.c if (edit->search->error == MC_SEARCH_E_NOTFOUND) edit 565 src/editor/editsearch.c else if (edit->search->error_str != NULL) edit 566 src/editor/editsearch.c message (D_NORMAL, title, "%s", edit->search->error_str); edit 572 src/editor/editsearch.c edit_do_search (WEdit *edit) edit 578 src/editor/editsearch.c assert (edit->search != NULL); edit 580 src/editor/editsearch.c edit_push_undo_action (edit, KEY_PRESS + edit->start_display); edit 583 src/editor/editsearch.c esm.edit = edit; edit 584 src/editor/editsearch.c esm.offset = edit->search_start; edit 596 src/editor/editsearch.c book_mark_flush (edit, -1); edit 598 src/editor/editsearch.c while (mc_search_run (edit->search, (void *) &esm, q, edit->buffer.size, &len)) edit 601 src/editor/editsearch.c edit->search_start = edit->search->normal_offset; edit 604 src/editor/editsearch.c l += edit_buffer_count_lines (&edit->buffer, q, edit->search->normal_offset); edit 606 src/editor/editsearch.c book_mark_insert (edit, l, BOOK_MARK_FOUND_COLOR); edit 608 src/editor/editsearch.c q = edit->search->normal_offset + 1; edit 614 src/editor/editsearch.c edit_cursor_move (edit, edit->search_start - edit->buffer.curs1); edit 620 src/editor/editsearch.c if (edit->found_len != 0 && edit->search_start == edit->found_start + 1) edit 621 src/editor/editsearch.c edit->search_start--; edit 625 src/editor/editsearch.c if (edit->found_len != 0 && edit->search_start == edit->found_start - 1) edit 626 src/editor/editsearch.c edit->search_start++; edit 631 src/editor/editsearch.c edit->found_start = edit->search_start = edit->search->normal_offset; edit 632 src/editor/editsearch.c edit->found_len = len; edit 633 src/editor/editsearch.c edit->over_col = 0; edit 634 src/editor/editsearch.c edit_cursor_move (edit, edit->search_start - edit->buffer.curs1); edit 635 src/editor/editsearch.c edit_scroll_screen_over_cursor (edit); edit 637 src/editor/editsearch.c edit->search_start--; edit 639 src/editor/editsearch.c edit->search_start++; edit 643 src/editor/editsearch.c edit->search_start = edit->buffer.curs1; edit 644 src/editor/editsearch.c edit_search_show_error (edit, _("Search")); edit 650 src/editor/editsearch.c edit->force |= REDRAW_COMPLETELY; edit 651 src/editor/editsearch.c edit_scroll_screen_over_cursor (edit); edit 657 src/editor/editsearch.c edit_search (WEdit *edit) edit 659 src/editor/editsearch.c if (edit_dialog_search_show (edit)) edit 660 src/editor/editsearch.c edit_do_search (edit); edit 668 src/editor/editsearch.c edit_search_init (WEdit *edit, const char *str) edit 671 src/editor/editsearch.c edit->search = mc_search_new (str, cp_source); edit 673 src/editor/editsearch.c edit->search = mc_search_new (str, NULL); edit 676 src/editor/editsearch.c if (edit->search == NULL) edit 679 src/editor/editsearch.c edit->search->search_type = edit_search_options.type; edit 681 src/editor/editsearch.c edit->search->is_all_charsets = edit_search_options.all_codepages; edit 683 src/editor/editsearch.c edit->search->is_case_sensitive = edit_search_options.case_sens; edit 684 src/editor/editsearch.c edit->search->whole_words = edit_search_options.whole_words; edit 685 src/editor/editsearch.c edit->search->search_fn = edit_search_cmd_callback; edit 686 src/editor/editsearch.c edit->search->update_fn = edit_search_update_callback; edit 688 src/editor/editsearch.c edit->search_line_type = mc_search_get_line_type (edit->search); edit 690 src/editor/editsearch.c edit_search_fix_search_start_if_selection (edit); edit 698 src/editor/editsearch.c edit_search_deinit (WEdit *edit) edit 700 src/editor/editsearch.c mc_search_free (edit->search); edit 701 src/editor/editsearch.c g_free (edit->last_search_string); edit 709 src/editor/editsearch.c WEdit *edit = ((const edit_search_status_msg_t *) user_data)->edit; edit 711 src/editor/editsearch.c *current_char = edit_buffer_get_byte (&edit->buffer, char_offset); edit 738 src/editor/editsearch.c label_set_textv (ssm->label, _("Searching %s: %3d%%"), esm->edit->last_search_string, edit 739 src/editor/editsearch.c edit_buffer_calc_percent (&esm->edit->buffer, esm->offset)); edit 741 src/editor/editsearch.c label_set_textv (ssm->label, _("Searching %s"), esm->edit->last_search_string); edit 763 src/editor/editsearch.c edit_search_cmd (WEdit *edit, gboolean again) edit 766 src/editor/editsearch.c edit_search (edit); edit 767 src/editor/editsearch.c else if (edit->last_search_string != NULL) edit 768 src/editor/editsearch.c edit_do_search (edit); edit 777 src/editor/editsearch.c edit->last_search_string = s; edit 779 src/editor/editsearch.c if (edit_search_init (edit, edit->last_search_string)) edit 781 src/editor/editsearch.c edit_do_search (edit); edit 786 src/editor/editsearch.c MC_PTR_FREE (edit->last_search_string); edit 790 src/editor/editsearch.c edit_search (edit); edit 798 src/editor/editsearch.c edit_replace_cmd (WEdit *edit, gboolean again) edit 812 src/editor/editsearch.c if (edit == NULL) edit 819 src/editor/editsearch.c edit->force |= REDRAW_COMPLETELY; edit 836 src/editor/editsearch.c edit_push_undo_action (edit, KEY_PRESS + edit->start_display); edit 838 src/editor/editsearch.c edit_dialog_replace_show (edit, disp1, disp2, &input1, &input2); edit 845 src/editor/editsearch.c edit->force = REDRAW_COMPLETELY; edit 861 src/editor/editsearch.c mc_search_free (edit->search); edit 862 src/editor/editsearch.c edit->search = NULL; edit 868 src/editor/editsearch.c if (edit->search == NULL && !edit_search_init (edit, input1)) edit 870 src/editor/editsearch.c edit->search_start = edit->buffer.curs1; edit 876 src/editor/editsearch.c if (edit->found_len != 0 && edit->search_start == edit->found_start + 1) edit 877 src/editor/editsearch.c edit->search_start--; edit 881 src/editor/editsearch.c if (edit->found_len != 0 && edit->search_start == edit->found_start - 1) edit 882 src/editor/editsearch.c edit->search_start++; edit 886 src/editor/editsearch.c esm.edit = edit; edit 887 src/editor/editsearch.c esm.offset = edit->search_start; edit 898 src/editor/editsearch.c if (!(edit->search->error == MC_SEARCH_E_OK || edit 899 src/editor/editsearch.c (once_found && edit->search->error == MC_SEARCH_E_NOTFOUND))) edit 900 src/editor/editsearch.c edit_search_show_error (edit, _("Search")); edit 906 src/editor/editsearch.c edit->search_start = edit->search->normal_offset; edit 909 src/editor/editsearch.c if (edit->search_start >= 0 && edit->search_start < edit->buffer.size) edit 914 src/editor/editsearch.c edit->found_start = edit->search_start; edit 915 src/editor/editsearch.c edit->found_len = len; edit 917 src/editor/editsearch.c edit_cursor_move (edit, edit->search_start - edit->buffer.curs1); edit 918 src/editor/editsearch.c edit_scroll_screen_over_cursor (edit); edit 920 src/editor/editsearch.c if (edit->replace_mode == 0) edit 925 src/editor/editsearch.c l = edit->curs_row - WIDGET (edit)->rect.lines / 3; edit 927 src/editor/editsearch.c edit_scroll_downward (edit, l); edit 929 src/editor/editsearch.c edit_scroll_upward (edit, -l); edit 931 src/editor/editsearch.c edit_scroll_screen_over_cursor (edit); edit 932 src/editor/editsearch.c edit->force |= REDRAW_PAGE; edit 933 src/editor/editsearch.c edit_render_keypress (edit); edit 936 src/editor/editsearch.c edit_push_key_press (edit); edit 940 src/editor/editsearch.c prompt = edit_dialog_replace_prompt_show (edit, disp1, disp2, -1, -1); edit 945 src/editor/editsearch.c edit->replace_mode = 1; edit 949 src/editor/editsearch.c edit->search_start--; edit 951 src/editor/editsearch.c edit->search_start++; edit 956 src/editor/editsearch.c edit->replace_mode = -1; edit 961 src/editor/editsearch.c repl_str = mc_search_prepare_replace_str (edit->search, input2_str); edit 963 src/editor/editsearch.c if (edit->search->error != MC_SEARCH_E_OK) edit 965 src/editor/editsearch.c edit_search_show_error (edit, _("Replace")); edit 973 src/editor/editsearch.c edit_delete (edit, TRUE); edit 976 src/editor/editsearch.c edit_insert (edit, repl_str->str[i]); edit 978 src/editor/editsearch.c edit->found_len = repl_str->len; edit 984 src/editor/editsearch.c edit->search_start--; edit 987 src/editor/editsearch.c edit->search_start += edit->found_len + (len == 0 ? 1 : 0); edit 989 src/editor/editsearch.c if (edit->search_start >= edit->buffer.size) edit 993 src/editor/editsearch.c edit_scroll_screen_over_cursor (edit); edit 998 src/editor/editsearch.c edit->search_start = edit->buffer.curs1; edit 999 src/editor/editsearch.c edit_update_curs_col (edit); edit 1001 src/editor/editsearch.c edit->force |= REDRAW_PAGE; edit 1002 src/editor/editsearch.c edit_render_keypress (edit); edit 1009 src/editor/editsearch.c while (edit->replace_mode >= 0); edit 1012 src/editor/editsearch.c edit_scroll_screen_over_cursor (edit); edit 1013 src/editor/editsearch.c edit->force |= REDRAW_COMPLETELY; edit 1014 src/editor/editsearch.c edit_render_keypress (edit); edit 1016 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 != 0 ? "(*) " : " "; 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 ? 0 : 1); edit 708 src/editor/editwidget.c y = event->y - (edit->fullscreen != 0 ? 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 1017 src/editor/editwidget.c WEdit *edit = EDIT (w); edit 1025 src/editor/editwidget.c edit_execute_cmd (edit, CK_Enter, -1); edit 1026 src/editor/editwidget.c edit_update_screen (edit); /* Paint the buttonbar over our possibly overlapping frame. */ edit 1048 src/editor/editwidget.c if (edit->drag_state == MCEDIT_DRAG_MOVE) edit 1051 src/editor/editwidget.c r->x = global_x - edit->drag_state_start; edit 1053 src/editor/editwidget.c else if (edit->drag_state == MCEDIT_DRAG_RESIZE) edit 1059 src/editor/editwidget.c edit->force |= REDRAW_COMPLETELY; /* Not really needed as WEdit's MSG_DRAW already does this. */ edit 1077 src/editor/editwidget.c WEdit *edit = EDIT (w); edit 1079 src/editor/editwidget.c int dx = edit->fullscreen != 0 ? 0 : 2; edit 1086 src/editor/editwidget.c if (edit->drag_state != MCEDIT_DRAG_NONE) edit 1107 src/editor/editwidget.c edit_update_curs_row (edit); edit 1108 src/editor/editwidget.c edit_update_curs_col (edit); edit 1110 src/editor/editwidget.c if (edit->fullscreen == 0) edit 1121 src/editor/editwidget.c edit_execute_cmd (edit, CK_WindowMove, -1); edit 1122 src/editor/editwidget.c edit_update_screen (edit); /* Paint the buttonbar over our possibly overlapping frame. */ edit 1123 src/editor/editwidget.c edit->drag_state_start = event->x; edit 1131 src/editor/editwidget.c edit_execute_cmd (edit, CK_WindowResize, -1); edit 1139 src/editor/editwidget.c edit_update_cursor (edit, event); edit 1140 src/editor/editwidget.c edit_total_update (edit); edit 1149 src/editor/editwidget.c edit_toggle_fullscreen (edit); edit 1150 src/editor/editwidget.c else if (edit->fullscreen == 0 && event->count == GPM_DOUBLE) edit 1152 src/editor/editwidget.c edit_toggle_fullscreen (edit); edit 1157 src/editor/editwidget.c edit_mark_current_word_cmd (edit); edit 1158 src/editor/editwidget.c edit_total_update (edit); edit 1163 src/editor/editwidget.c edit_mark_current_line_cmd (edit); edit 1164 src/editor/editwidget.c edit_total_update (edit); edit 1169 src/editor/editwidget.c edit_update_cursor (edit, event); edit 1170 src/editor/editwidget.c edit_total_update (edit); edit 1174 src/editor/editwidget.c edit_move_up (edit, 2, TRUE); edit 1175 src/editor/editwidget.c edit_total_update (edit); edit 1179 src/editor/editwidget.c edit_move_down (edit, 2, TRUE); edit 1180 src/editor/editwidget.c edit_total_update (edit); edit 1344 src/editor/editwidget.c edit_save_size (WEdit *edit) edit 1346 src/editor/editwidget.c edit->loc_prev = WIDGET (edit)->rect; edit 1367 src/editor/editwidget.c WEdit *edit; edit 1370 src/editor/editwidget.c edit = edit_init (NULL, r, arg); edit 1371 src/editor/editwidget.c if (edit == NULL) edit 1374 src/editor/editwidget.c w = WIDGET (edit); edit 1379 src/editor/editwidget.c edit_set_buttonbar (edit, buttonbar_find (h)); edit 1395 src/editor/editwidget.c edit_handle_move_resize (WEdit *edit, long command) edit 1397 src/editor/editwidget.c Widget *w = WIDGET (edit); edit 1400 src/editor/editwidget.c if (edit->fullscreen != 0) edit 1402 src/editor/editwidget.c edit->drag_state = MCEDIT_DRAG_NONE; edit 1407 src/editor/editwidget.c switch (edit->drag_state) edit 1414 src/editor/editwidget.c edit->drag_state = MCEDIT_DRAG_MOVE; edit 1415 src/editor/editwidget.c edit_save_size (edit); edit 1416 src/editor/editwidget.c edit_status (edit, TRUE); /* redraw frame and status */ edit 1422 src/editor/editwidget.c edit->drag_state_start = w->rect.cols / 2; edit 1426 src/editor/editwidget.c edit->drag_state = MCEDIT_DRAG_RESIZE; edit 1427 src/editor/editwidget.c edit_save_size (edit); edit 1428 src/editor/editwidget.c edit_status (edit, TRUE); /* redraw frame and status */ edit 1440 src/editor/editwidget.c edit->drag_state = MCEDIT_DRAG_RESIZE; edit 1447 src/editor/editwidget.c edit_window_move (edit, command); edit 1452 src/editor/editwidget.c edit->drag_state = MCEDIT_DRAG_NONE; edit 1453 src/editor/editwidget.c edit_status (edit, TRUE); /* redraw frame and status */ edit 1465 src/editor/editwidget.c edit->drag_state = MCEDIT_DRAG_MOVE; edit 1472 src/editor/editwidget.c edit_window_resize (edit, command); edit 1477 src/editor/editwidget.c edit->drag_state = MCEDIT_DRAG_NONE; edit 1478 src/editor/editwidget.c edit_status (edit, TRUE); /* redraw frame and status */ edit 1499 src/editor/editwidget.c w->mouse.forced_capture = (edit->drag_state != MCEDIT_DRAG_NONE); edit 1512 src/editor/editwidget.c edit_toggle_fullscreen (WEdit *edit) edit 1514 src/editor/editwidget.c Widget *w = WIDGET (edit); edit 1516 src/editor/editwidget.c edit->fullscreen = edit->fullscreen != 0 ? 0 : 1; edit 1517 src/editor/editwidget.c edit->force = REDRAW_COMPLETELY; edit 1519 src/editor/editwidget.c if (edit->fullscreen == 0) edit 1521 src/editor/editwidget.c edit_restore_size (edit); edit 1529 src/editor/editwidget.c edit_save_size (edit); edit 1535 src/editor/editwidget.c edit->force |= REDRAW_PAGE; edit 1536 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 ? 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 331 src/editor/etags.c (edit->fullscreen != 0 ? 0 : 1) + 1; edit 370 src/editor/etags.c if (edit->modified == 0) edit 377 src/editor/etags.c edit->force |= REDRAW_COMPLETELY; edit 386 src/editor/etags.c if (edit->filename_vpath != NULL && edit->filename_vpath->relative edit 387 src/editor/etags.c && edit->dir_vpath != NULL) edit 388 src/editor/etags.c vpath = vfs_path_append_vpath_new (edit->dir_vpath, edit->filename_vpath, NULL); edit 390 src/editor/etags.c vpath = vfs_path_clone (edit->filename_vpath); edit 393 src/editor/etags.c edit->start_line + edit->curs_row + 1); edit 397 src/editor/etags.c edit_reload_line (edit, &edit_history_moveto[edit_stack_iterator]); edit 410 src/editor/etags.c edit_get_match_keyword_cmd (WEdit *edit) edit 422 src/editor/etags.c if (!edit_buffer_find_word_start (&edit->buffer, &word_start, &word_len)) edit 428 src/editor/etags.c g_string_append_c (match_expr, edit_buffer_get_byte (&edit->buffer, word_start + i)); edit 456 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 590 src/editor/spell.c edit_suggest_current_word (WEdit *edit) edit 599 src/editor/spell.c match_word = edit_buffer_get_word_from_pos (&edit->buffer, edit->buffer.curs1, &word_start, edit 628 src/editor/spell.c edit->found_start = word_start; edit 629 src/editor/spell.c edit->found_len = word_len; edit 630 src/editor/spell.c edit->force |= REDRAW_PAGE; edit 631 src/editor/spell.c edit_scroll_screen_over_cursor (edit); edit 632 src/editor/spell.c edit_render_keypress (edit); edit 635 src/editor/spell.c spell_dialog_spell_suggest_show (edit, match_word->str, &new_word, suggest); edit 636 src/editor/spell.c edit_cursor_move (edit, word_len - cut_len); edit 653 src/editor/spell.c edit_backspace (edit, TRUE); edit 657 src/editor/spell.c edit_insert (edit, new_word[i]); edit 666 src/editor/spell.c edit->found_start = 0; edit 667 src/editor/spell.c edit->found_len = 0; edit 679 src/editor/spell.c edit_spellcheck_file (WEdit *edit) edit 681 src/editor/spell.c if (edit->buffer.curs_line > 0) edit 683 src/editor/spell.c edit_cursor_move (edit, -edit->buffer.curs1); edit 684 src/editor/spell.c edit_move_to_prev_col (edit, 0); edit 685 src/editor/spell.c edit_update_curs_row (edit); edit 692 src/editor/spell.c c2 = edit_buffer_get_current_byte (&edit->buffer); edit 696 src/editor/spell.c if (edit->buffer.curs1 >= edit->buffer.size) edit 700 src/editor/spell.c edit_cursor_move (edit, 1); edit 701 src/editor/spell.c c2 = edit_buffer_get_current_byte (&edit->buffer); edit 705 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;