Ilia Maslakov
87a891a54c
replace islower to g_ascii_islower
...
replace tolower to g_ascii_tolower
2009-04-06 10:58:33 +00:00
Ilia Maslakov
b0729f75fb
replace isalpha to g_ascii_isalpha
...
replace strlen to str_term_width1
add #include "strutil.h" if need
2009-04-06 10:31:12 +00:00
Ilia Maslakov
3a161f9576
fix: problem when flag Persistent selection swiched off then text not marked
...
by F3 + arrows
2009-03-31 10:39:00 +00:00
Ilia Maslakov
a8eb299506
Fix: defult value of option_persistent_selectionsis, set "yes" by default.
2009-03-28 09:46:07 +00:00
Ilia Maslakov
a443945748
replace "Persistent blocks" to "Persistent selection" in
...
edit/edit.c, edit/edit.h, edit/editoptions.c, src/setup.c
2009-03-28 00:35:25 +00:00
Slava Zanko
2390c46d06
Rename '*persistent_block*' to '*persistent_selection*' for more sence.
...
Thanks to Ossi
2009-03-27 22:48:31 +02:00
Ilia Maslakov
3cc9aac553
Add load/save option editor_persistent_block to ~/.mc/ini;
...
Add option editor_persistent_block to Options/General dialog;
Make persistent/nonpersistent blocks if mcedit;
Enlarged height of Options/General dialog from 17 to 19 lines;
2009-03-26 11:32:18 +00:00
Ilia Maslakov
f312a93332
experemental commit
2009-03-25 21:31:07 +00:00
Ilia Maslakov
20c769b063
Add stack navigation structure. Add hotkeys A-'-' backward A-'=' forward navigation to files.
...
add edit/etags.c edit/etags.h
2009-02-25 21:55:35 +00:00
Mikhail S. Pobolovets
da3b76b8d7
Merge branch '176_lzma'
2009-02-21 12:23:50 +02:00
Slava Zanko
e54f318cef
Completely removed MHL stuff
...
Changed all source files relative to remove MHL
Some string-related functions moved into src/util.c
This stable fix.
2009-02-06 14:01:28 +02:00
Patrick Winnertz
3b8f37b99e
Moved some functions out of mhl into src/util.c
...
This commit moves the mhl_str_concat_dir_and_file back into src/util.c whitout changing atm the functionality.
Please note that this is an incomplete fix and needs to be partially enhanced in order to keep the full functionality with glib.
Signed-off-by: Patrick Winnertz <winnie@debian.org>
2009-02-06 11:17:03 +01:00
Patrick Winnertz
1c287d798d
First bunch of mhl_mem_free removal patches
...
Signed-off-by: Patrick Winnertz <winnie@debian.org>
2009-02-05 23:36:58 +01:00
Patrick Winnertz
3d0f9e419a
Reverted some more GString removals. (See f235b1976e
)
...
Signed-off-by: Patrick Winnertz <winnie@debian.org>
2009-02-05 23:22:08 +01:00
Patrick Winnertz
155fd328a4
Revert second bunch of mhl patches (see 9b9cab5874
)
...
This reintroduce GString again and drop the use of mhl_mem_free in some files
Signed-off-by: Patrick Winnertz <winnie@debian.org>
2009-02-05 23:18:38 +01:00
Enrico Weigelt, metux IT service
a6a9c1c147
fixed edit.c
2009-02-04 21:16:01 +01:00
Enrico Weigelt, metux IT service
a5ba278729
merged in lzma patch from mandriva
2009-02-04 21:16:00 +01:00
Enrico Weigelt, metux IT service
9b9cab5874
manually merged 234_remove_g_string
2009-02-02 22:39:12 +01:00
Enrico Weigelt, metux IT service
8b38cf44da
manully merged 227_replace_g_free
2009-02-02 22:34:05 +01:00
Enrico Weigelt, metux IT service
f235b1976e
replaced GString stuff by static buffers
2009-01-31 21:55:51 +01:00
Enrico Weigelt, metux IT service
54d6ec88dc
replaced buggy concat_dir_and_file() by mhl_str_dir_plus_file()
2009-01-31 16:51:58 +01:00
Enrico Weigelt, metux IT service
15d7d47c15
replaced g_free() by mhl_mem_free()
2009-01-30 19:28:35 +01:00
Enrico Weigelt, metux IT service
8fef98a418
Merge commit 'origin/96_segfault_invalid_mtime' into mc-4.6
2009-01-11 22:07:25 +01:00
Patrick Winnertz
197973ccf2
Applied patch from metux on git - needed to fix some stuff manually.
...
This branch is based on mc-4.6
2009-01-10 11:53:20 +01:00
Slava Zanko
8ebe7873c9
in file edit/edit.[ch]
...
make function edit_cursor_move() to non-return (void).
2009-01-09 01:33:17 +02:00
Patrick Winnertz
6f8a3b3825
Add small patch which should fix the uninitialised warning
2009-01-08 23:05:30 +01:00
Pavel Tsekov
2f3df3af4e
* edit/bookmark.c: Update copyright notice.
...
* edit/edit.c: Likewise.
* edit/editcmd.c: Likewise.
* edit/editdraw.c: Likewise.
* edit/editkeys.c: Likewise.
* edit/editlock.c: Likewise.
* edit/editmenu.c: Likewise.
* edit/editoptions.c: Likewise.
* edit/editwidget.c: Likewise.
* edit/syntax.c: Likewise.
* src/background.c: Likewise.
* src/boxes.c: Likewise.
* src/complete.c: Likewise.
* src/execute.c: Likewise.
* src/ext.c: Likewise.
* src/file.c: Likewise.
* src/filegui.c: Likewise.
* src/fileopctx.c: Likewise.
* src/find.c: Likewise.
* src/hotlist.c: Likewise.
* src/key.c: Likewise.
* src/keyxdef.c: Likewise.
* src/layout.c: Likewise.
* src/learn.c: Likewise.
* src/listmode.c: Likewise.
* src/main.c: Likewise.
* src/panelize.c: Likewise.
* src/slint.c: Likewise.
* src/textconf.c: Likewise.
* src/tree.c: Likewise.
* src/treestore.c: Likewise.
* src/tty.c: Likewise.
* src/util.c: Likewise.
* src/utilunix.c: Likewise.
* src/view.c: Likewise.
* src/widget.c: Likewise.
* src/wtools.c: Likewise.
* src/x11conn.c: Likewise.
* vfs/cpio.c: Likewise.
* vfs/extfs.c: Likewise.
* vfs/fish.c: Likewise.
* vfs/ftpfs.c: Likewise.
* vfs/gc.c: Likewise.
* vfs/mcfs.c: Likewise.
* vfs/mcserv.c: Likewise.
* vfs/smbfs.c: Likewise.
* vfs/tar.c: Likewise.
2007-09-25 15:33:35 +00:00
Pavel Tsekov
23361694b6
* src/background.c: Use the correct form of FSF's name in the copyright
...
notice.
* src/boxes.c: Ditto.
* src/complete.c: Ditto.
* src/execute.c: Ditto.
* src/ext.c: Ditto.
* src/file.c: Ditto.
* src/filegui.c: Ditto.
* src/fileopctx.c: Ditto.
* src/fileopctx.h: Ditto.
* src/find.c: Ditto.
* src/hotlist.c: Ditto.
* src/key.c: Ditto.
* src/keyxdef.c: Ditto.
* src/layout.c: Ditto.
* src/learn.c: Ditto.
* src/listmode.c: Ditto.
* src/main.c: Ditto.
* src/panelize.c: Ditto.
* src/slint.c: Ditto.
* src/textconf.c: Ditto.
* src/tree.c: Ditto.
* src/treestore.c: Ditto.
* src/tty.c: Ditto.
* src/util.c: Ditto.
* src/utilunix.c: Ditto.
* src/view.c: Ditto.
* src/widget.c: Ditto.
* src/wtools.c: Ditto.
* src/x11conn.c: Ditto.
* vfs/cpio.c: Ditto.
* vfs/extfs.c: Ditto.
* vfs/fish.c: Ditto.
* vfs/ftpfs.c: Ditto.
* vfs/gc.c: Ditto.
* vfs/mcfs.c: Ditto.
* vfs/mcserv.c: Ditto.
* vfs/smbfs.c: Ditto.
* vfs/tar.c: Ditto.
* vfs/undelfs.c: Ditto.
* vfs/utilvfs.c: Ditto.
* vfs/vfs.c: Ditto.
* edit/bookmark.c: Ditto.
* edit/edit.c: Ditto.
* edit/edit.h: Ditto.
* edit/editcmd.c: Ditto.
* edit/editdraw.c: Ditto.
* edit/editkeys.c: Ditto.
* edit/editlock.c: Ditto.
* edit/editmenu.c: Ditto.
* edit/editoptions.c: Ditto.
* edit/editwidget.c: Ditto.
* edit/syntax.c: Ditto.
2007-09-24 09:28:32 +00:00
Pavel Tsekov
bb2231fd1b
* edit/edit.c (edit_execute_cmd): Update the bracket pair highlighter
...
state after processing CK_Find, CK_Find_Again, CK_Replace,
CK_Replace_Again, CK_Complete_Word.
2007-01-04 15:37:23 +00:00
Pavel Tsekov
2cb049a9cb
* edit/edit.h (edit_move_to_prev_col): Declare the function to have
...
external linkage.
(edit_find_bracket): Likewise.
* edit/edit.c (edit_move_to_prev_col): Reflect the changes above.
(edit_find_bracket): Likewise.
* edit/editwidget.c (edit_event): When moving around with the mouse
use edit_move_down(), edit_move_up() and edit_move_to_prev_col()
instead of move_cursor() to update the cursor position since
the latter doesn't update some internal variables.
Use edit_find_bracket() to update the bracket pair highlighter
state.
2006-12-10 22:07:28 +00:00
Roland Illig
45bb7dbe50
The file's mtime is checked before saving.
2006-11-17 21:50:33 +00:00
Roland Illig
663f821891
* edit.c (user_menu): There is no need to prefix the filename
...
with PATH_SEP when calling concat_dir_and_file().
2006-02-10 12:29:36 +00:00
Roland Illig
c29b321563
* edit.h: Removed the leading PATH_SEP_STR from EDIT_DIR, as the
...
latter is not an absolute directory.
* edit.c: Adjusted the users of EDIT_DIR.
* editcmd.c: Likewise.
* syntax.c: Likewise.
* src/user.c: Likewise.
2006-02-04 14:41:41 +00:00
Leonard den Ottolander
2157716489
edit/edit.c (edit_execute_cmd): Reload syntax on toggle to on.
2006-02-02 19:45:49 +00:00
Leonard den Ottolander
17108c8b2e
edit/edit.c, edit/editcmddef.h, edit/editkeys.c: Add Ctrl-S to toggle syntax
...
highlighting.
2006-02-01 17:07:11 +00:00
Pavel Tsekov
450fe431fc
* edit.c (edit_auto_indent): Remove redundant parameters.
...
Change the indentation strategy to copy whitespace
from the previous line instead of filling up with allegedly
equivalent whitespace depending on the tab setting.
(edit_execute_cmd): Accomodate change of parameters to
edit_auto_indent().
2006-01-26 15:42:56 +00:00
Roland Illig
9be77996d6
Replaced the
...
editor_option_backup_ext_int hack with a string configuration
variable, which allows the backup extension to have more than
just four characters.
2005-09-07 08:54:11 +00:00
Leonard den Ottolander
f21564b9e6
* edit/choosesyntax.c: Create file. Menu option to override syntax
...
highlighting.
* edit/Makefile.am: Add choosesyntax.c.
* edit/edit.c (edit_init): Set option_auto_syntax to 1 on every invokation
of the editor.
* edit/edit.h: Pass char*** to edit_load_syntax(). Add parameters for
syntax dialog and override.
* edit/editmenu.c (menu_options): Add menu option to override syntax
hightlighting.
* edit/editoptions.c (edit_options_dialog): Pass option_syntax_type to
edit_load_syntax().
* edit/syntax.c (edit_read_syntax_file): Dynamically allocate and fill
syntax list pnames.
* edit/syntax.c (edit_load_syntax): Use char*** for syntax list.
* src/wtools.h: #include "widget.h" and remove redundant declarations
of Dlg_head and WListbox.
2005-07-24 13:37:58 +00:00
Roland Illig
073907ec5f
* usermap.c: Allow user-defined keyboard bindings for mcedit.
...
* usermap.h: Likewise.
* Makefile.am: Likewise.
* editcmd.c: Define new editor commands which had been coded
inline before.
This change also affects some other files.
* edit-widget.h: Invented a new type edit_key_map_type instead of
using long for.
* editkeys.c: Using that type.
2005-07-20 11:56:30 +00:00
Pavel Roskin
1f60f44145
Update postal address of Free Software Foundation.
2005-05-27 03:35:10 +00:00
Pavel Roskin
21ea3f6740
* *.c: Remove duplicate includes.
2005-05-10 20:57:11 +00:00
Roland Illig
ecc08f6c60
* edit.h: Removed unnecessary #include directives ...
...
* *.c: ... and added them here.
2005-02-22 17:00:36 +00:00
Roland Illig
15342acba1
* edit.c: Fixed some whitespacing issues.
2005-02-07 20:28:13 +00:00
Roland Illig
05d2881a71
* *.c: Removed trailing whitespace.
2005-02-07 07:31:19 +00:00
Roland Illig
13737b1de1
* edit.c (user_menu): Don't use catstrs anymore.
2005-02-07 06:18:13 +00:00
Roland Illig
64eed6e12b
* edit.h (catstrs): Changed the return type to "const char *".
...
* editcmd.c (catstrs): Likewise.
* edit.c (user_menu): Added const qualifiers.
* editcmd.c: Likewise.
* syntax.c: Likewise.
2005-02-07 06:02:59 +00:00
Roland Illig
c90e9d1b95
* edit.c: Improved message formatting.
2005-02-06 23:58:59 +00:00
Roland Illig
6dc6158ff1
* edit.h: Removed NO_INLINE_GETBYTE conditional. The name was
...
misleading, as it really meant INLINE_GETBYTE. Furthermore,
it has not been working since the split of edit.h into edit-widget.h.
* edit.c: Likewise.
2005-01-30 20:34:58 +00:00
Andrew V. Samoilov
12d24222db
* edit.c (edit_clean): g_free handles NULL argument too,
...
no need for the comparison.
(edit_move_backward_lots): Likewise.
* editcmd.c (edit_set_filename): Likewise.
(edit_replace_cmd): Likewise.
(edit_search_cmd): Likewise.
(edit_sort_cmd): Likewise.
(edit_mail_dialog): Likewise.
* syntax.c (syntax_g_free): Likewise.
(edit_read_syntax_rules): Likewise.
2004-09-24 22:37:00 +00:00
Roland Illig
9c65d36bdd
* edit.c: Replaced NULL with (char *) NULL. Likewise for 0, where
...
NULL was meant.
* editcmd.c: Likewise.
* editlock.c: Likewise.
* editwidget.c: Likewise.
* syntax.c: Likewise.
2004-09-24 14:57:57 +00:00