Commit Graph

11759 Commits

Author SHA1 Message Date
Andrew Borodin
62bbe53205 (edit_load_file_from_filename): fixed file unlocking.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 11:06:01 +03:00
Slava Zanko
409e8ab5fd Typo fix in message
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-19 11:06:01 +03:00
Andrew Borodin
4bd81f5866 (expand_format): minor optimization.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 11:06:01 +03:00
Andrew Borodin
53b146c83a Added default shortcuts for dynamically resize panels.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 11:06:01 +03:00
Andrew Borodin
308237aa11 Fixed preprocessor conditions.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 11:06:00 +03:00
Andrew Borodin
d38385eb37 find.c: drop support of legacy config option.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 11:06:00 +03:00
Andrew Borodin
67a4c6d521 Added macros for Layout and Misc sections of main config file.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 11:06:00 +03:00
Andrew Borodin
dea3aa9023 Reorder fields in mc_global struct and change type for some of them.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 11:06:00 +03:00
Andrew Borodin
0960ef2541 Removed useless return.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 11:04:58 +03:00
Andrew Borodin
01e51f5496 Editor: avoid extra screen redraw.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 11:04:57 +03:00
Andrew Borodin
4ca6fe66aa editdraw.c: removed unused defines.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 11:04:57 +03:00
Andrew Borodin
dc3ff33d34 Tweak key bindings.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 11:04:57 +03:00
Andrew Borodin
c7bde637f9 Tweak background operations support.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 11:04:57 +03:00
Andrew Borodin
793546fed4 Removed mcserv.8 target.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 11:04:57 +03:00
Andrew Borodin
b8190c1f53 lib/tty/win.c: includes cleanup.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 11:04:57 +03:00
Andrew Borodin
aadf01f390 Include sys/param.h conditionally.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 11:04:57 +03:00
Andrew Borodin
f7f37f674e Check assert.h header and use it conditionally.
assert(3) should be replaced with g_assert().

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 11:04:57 +03:00
Andrew Borodin
b3d1eafb5e Minor optimization of memory allocation for string copy.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 11:04:57 +03:00
Andrew Borodin
49dd358a16 Removed check of unused functions.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 11:04:57 +03:00
Andrew Borodin
1b4df2bdd2 Removed check of unused header files.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 11:04:57 +03:00
Andrew Borodin
e2b67a33ba Ticket #2740: code cleanup before 4.8.2 release.
Removes references to AC_HEADER_STDC macro, marked as obsolescent
in the Autoconf 2.60 release.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 11:04:56 +03:00
Andrew Borodin
cce7ccf48a Tweak arguments parsing
...to allow to show info about mc options regardless of the fact that
configuration directories cannot be created.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-17 19:04:22 +03:00
Andrew Borodin
dcba554a6d Handle error of mc main loop.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-17 19:04:22 +03:00
Andrew Borodin
9919577962 Ticket #2738: handle errors at mc sturtup stage.
Don't run MC if configuration directory cannot be created.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-17 19:04:22 +03:00
Slava Zanko
63a3933814 Merge branch '2695_editor_segfault'
* 2695_editor_segfault:
  fixed reading the not initialized data
  Ticket #2695: fixed segfault on newly created files in editor
2012-03-15 12:48:22 +03:00
Ilia Maslakov
0f9083f9c0 fixed reading the not initialized data
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2012-03-15 12:47:46 +03:00
Slava Zanko
a354a9b228 Ticket #2695: fixed segfault on newly created files in editor
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-15 12:47:46 +03:00
Andrew Borodin
61ee9cef43 Merge branch '2747_hotlist_load_fixups'
* 2747_hotlist_load_fixups:
  Support of use ~ as home directory in hotlist.
  Ticket #2747: fixups of hotlist loading.
2012-03-12 16:27:07 +03:00
Andrew Borodin
dd9c7516a3 Support of use ~ as home directory in hotlist.
Expand tilde while vfs path canonicalize.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-12 16:23:59 +03:00
Andrew Borodin
cfc13ba3a0 Ticket #2747: fixups of hotlist loading.
Path transformation while loading hotlist breaks shell variable
substitution.
Load paths from hotlist as is withowt any transformation.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-12 16:22:22 +03:00
Sergei Trofimovich
a742521198 misc/syntax/cabal.syntax: added some cabal-1.8+ keywords
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
2012-03-09 21:16:28 +03:00
Andrew Borodin
da00fa0b04 Fixup of getting stat info before file operation.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-08 19:37:39 +03:00
Andrew Borodin
dba17c8fde Merge branch '2608_widget_enhancement'
* 2608_widget_enhancement:
  Make menu always resizable.
  Fixed location of hotlist query dialogs.
  Added D_CENTER flag to query dialog flags
  Workaround for NCurses output routines.
  Allow draw a part of line if some coordinares are out of screen boundaries.
  Allow close help and tree dialogs using ctrl-g shortcut (SIGINT).
  Allow override standard dialog actions in some dialog.
  Don't get dialog hotkey from disabled widget.
  Fixed widget redraw order in dialog.
  Menu hack to keep overlapped widgets order
  Added dlg_set_top_widget() function
  Allow add and remove widgets in runtime.
  Put global mouse coordinates to widgets.
  Fix mouse handling in dialog.
  Ticket #2608: widget enhancements.
2012-03-08 10:38:46 +03:00
Andrew Borodin
fc371ba8f8 Make menu always resizable.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-08 10:37:56 +03:00
Andrew Borodin
50c63ca886 Fixed location of hotlist query dialogs.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-08 10:37:56 +03:00
Andrew Borodin
19a4eb1ca6 Added D_CENTER flag to query dialog flags
...to forced place a query dialog in the center of the screen.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-08 10:37:56 +03:00
Andrew Borodin
e1f2b5b017 Workaround for NCurses output routines.
Unlike S-Lang, NCurses always wraps long lines and unable trancate that
to pring only visible part of text. Therefore we have to implement our
own addch() wrappers.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-08 10:37:56 +03:00
Andrew Borodin
62fc80f5f7 Allow draw a part of line if some coordinares are out of screen boundaries.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-08 10:37:56 +03:00
Andrew Borodin
140d4ea117 Allow close help and tree dialogs using ctrl-g shortcut (SIGINT).
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-08 10:37:55 +03:00
Andrew Borodin
7e6ff9caf9 Allow override standard dialog actions in some dialog.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-08 10:37:55 +03:00
Andrew Borodin
dc3d161e71 Don't get dialog hotkey from disabled widget.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-08 10:37:55 +03:00
Andrew Borodin
65d9697d69 Fixed widget redraw order in dialog.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-08 10:37:55 +03:00
Andrew Borodin
8bbad1dbfb Menu hack to keep overlapped widgets order
...required in multi-window editor.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-08 10:37:55 +03:00
Andrew Borodin
fe34f89a19 Added dlg_set_top_widget() function
...to move widget to the top of widget list and make it current.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-08 10:37:55 +03:00
Andrew Borodin
6ad4b2466b Allow add and remove widgets in runtime.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-08 10:37:55 +03:00
Andrew Borodin
33d25a0c8f Put global mouse coordinates to widgets.
Now each widget gets absolute coordinates of mouse pointer and decides
itself how to handle them.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-08 10:37:55 +03:00
Andrew Borodin
7956b64e54 Fix mouse handling in dialog.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-08 10:37:55 +03:00
Andrew Borodin
c3f359c82b Ticket #2608: widget enhancements.
New method of widget ID assignment:
now widget ID is a value of unsigned long type. Dlg_head structure now has
new filed widget_id that contains a ID of the next added widget. When new
widget is added into dialog, widget_id is set as ID of it and then
incremented.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-08 10:37:55 +03:00
Andrew Borodin
8fe49bb599 Merge branch '2695_editor_segfault'
* 2695_editor_segfault:
  Ticket #2695: Fixed segfault while new file created in editor.
2012-03-08 10:34:17 +03:00
Slava Zanko
8451286bb5 Ticket #2695: Fixed segfault while new file created in editor.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-08 10:33:22 +03:00