Commit Graph

12 Commits

Author SHA1 Message Date
Andrew V. Samoilov
9959ac39fb * editcmd.c (canonicalize_pathname) [GTK]: memory leaking fixed 2000-11-02 12:03:56 +00:00
Pavel Roskin
739edc1780 * editcmd.c (canonicalize_pathname) [GTK]: Make the argument
constant.
        (edit_split_filename) [GTK]: Make the second argument constant
        to match the declaration.
2000-10-31 19:24:52 +00:00
Andrew V. Samoilov
5aac944afe :) 2000-10-30 18:06:10 +00:00
Pavel Roskin
6dae85923b * libgettext.h: Removed, shouldn't be here.
* Makefile.in: Adjusted to remove libgettext.h
2000-09-30 14:31:31 +00:00
Andrew V. Samoilov
503485b453 2000-09-15 Andrew V. Samoilov <sav@bcs.zp.ua>
* editcmd.c (edit_delete_macro, edit_(load|save)_macro_cmd): don't
	translate keywords written to macro file or macro don't work, at least
	for Cyrillic. Made this as separate commit, so, if it seriously breaks
	compatibility it's easy to revert it.
2000-09-15 10:43:22 +00:00
Andrew V. Samoilov
bd90155537 2000-09-15 Andrew V. Samoilov <sav@bcs.zp.ua>
* editcmd.c (edit_save_file): fopen()+fwrite()+fclose() replaced
	by open()+write()+close() to restore possibility to edit files
	over Midnight Commander's VFSes

	(edit_replace_cmd) [MIDNIGHT]: some more right algorithm to calculate
	menu coordinates used. I don't like if menu hides replaced text.

	(edit_goto_cmd): Memory leaking fixed when f is empty string
2000-09-15 10:10:18 +00:00
Andrew V. Samoilov
2420cfe9dd 2000-09-07 Andrew V. Samoilov <sav@bcs.zp.ua>
* edit.c (check_file_access) [MIDNIGHT,GTK]: error message localized;
	some cosmetics changes to avoid annoying warnings

	* editcmd.c (edit_save_file): pclose returns 0 on success,
	file fclose()d when fwrite fails

	(pipe_mail): malloc () + sprintf () replaced by g_strdup_printf ()

	* syntax.c (syntax_text): Makefile replaced by [Mm]akefile to cover
	makefile and GNUmakefile
	(upgrade_syntax_file): infinitive loop fixed when rule file
	is outdated but it cannot be unlinked/overwritten
2000-09-07 17:18:32 +00:00
Pavel Roskin
ab6e6554f5 * editwidget.c [!MIDNIGHT]: include xdnd.h
* Makefile.in: distribute xdnd.h
2000-08-30 21:23:14 +00:00
Pavel Roskin
5b11ed2900 Adjusted lists of distributed files
Fixed rules for rebuilding makefiles
2000-08-18 05:18:47 +00:00
Pavel Roskin
6394819d21 gtkedit.c [GTK]: don't include mousemark.h
gtkedit.h [GTK]: likewise
2000-08-08 13:29:33 +00:00
Pavel Roskin
2fa49b7304 mousemark.c, mousemark.h: removed
Makefile.in: don't distribute mousemark.h
gtkedit.c [MIDNIGHT]: don't include mousemark.h
gtkedit.h [MIDNIGHT]: likewise
2000-08-03 21:53:01 +00:00
Andrew V. Samoilov
090957605c 2000-07-20 Andrew V. Samoilov <sav@bcs.zp.ua>
* gtkedit/editcmd.c (edit_save_file): check fclose()s return value
	to prevent loss of data
	(edit_block_process_cmd): don't translate empty string

	* gtkedit/edit.h (edit_get_write_filter, edit_write_stream,
	edit_init_file): added declarations

	* edit.c (edit_filters): constified
	(edit_get_write_filter): filename constified
	(user_menu): don't translate empty string

	* syntax.c (syntax_text): constified
	(upgrade_syntax_file): syntax_line constified, f closed after use
2000-07-19 22:23:58 +00:00