Commit Graph

8932 Commits

Author SHA1 Message Date
Andrew Borodin
39c875a888 Merge branch '1531_reverse_selection_old_mode'
* 1531_reverse_selection_old_mode:
  Ticket #1531: old method of reverse selection of files.
2009-08-19 11:25:53 +04:00
Andrew Borodin
96e032b473 Ticket #1531: old method of reverse selection of files.
Now Gray-* shortcut inverts selection of directories as well as files.
This is very confusing feature especially when user is going to delete
files.

Added new variable 'reverse_files_only' allows use the old behavior
of reverse selection.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-08-19 11:25:25 +04:00
Andrew Borodin
bcf734f82a Merge branch '74_resize_disabled_mouse'
* 74_resize_disabled_mouse:
  Ticket #74: TUI is not resized if mouse is desabled.
2009-08-19 11:20:35 +04:00
Andrew Borodin
7c1e24525d Ticket #74: TUI is not resized if mouse is desabled.
If you run without mouse support (mc -d), mc doesn't detect resizes.

You need to press a key for mc to resize itself to new window after
window is maximized or resized (press up/down arrow, Ctrl-O, almost
anything will work).

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-08-19 11:20:15 +04:00
Sergei Trofimovich
c769f7fcd3 Ticket #82: savannah: "save as" retains mode (take 2) provided by dborka
Suppose you have two files, foo and bar. Both files have 444 permissions.
Now edit foo and "Save". It can't save and instead prompt you to "Save As".
Enter bar. It will chmod bar to 644. If we don't touch touch existing file
permissions for "Save", I don't see why we should for "Save As".

Patch adds S_IWUSR only if different_filename and file does not exist yet.
For consistency, it's S_IWUSR not S_IWRITE.

Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
2009-08-18 22:28:59 +03:00
Ilia Maslakov
c7001ef7cf Ticket #1484 (Editor bookmarks made visible)
fix: TWS and abnormal chars not highlighted

Signed-off-by: Ilia Maslakov <il.smind@google.com>
2009-08-18 11:30:12 +00:00
Daniel Borca
9f2034d376 Ticket #1484 (show bookmark)
* add keyboard shortcuts
    * add showing bookmarks

Signed-off-by: Ilia Maslakov <il.smind@google.com>

    * show '*' for bookmarked line (if line state showed)

Signed-off-by: Ilia Maslakov <il.smind@google.com>
2009-08-18 10:05:50 +00:00
Daniel Borca
ea219adec3 Ticket #1412 (vertical selection issue)
fix: vertical selection issue then line state is switch on

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2009-08-18 06:13:01 +00:00
Ilia Maslakov
4afee14f94 Ticket #1529 (remove search converter overhead)
* add: void tty_print_anychar (int c)
    * remove superfluous search converter in convert_from_utf_to_current_c,
      convert_from_8bit_to_utf_c add converter to WEdit struct
    * fix: init defaulf codesets
    * fix: segfault on replace if LANG=C

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2009-08-18 05:52:40 +00:00
Ilia Maslakov
0ff82e59c1 Merge branch '1534_cool_cooledit'
* 1534_cool_cooledit:
  add option "Cursor beyond end of line" into "Options\General..." dialog (editor_beyond_eol in ini)
  Ticket #1534 (cool cooledit)
2009-08-17 18:13:23 +00:00
Ilia Maslakov
b536c3e487 add option "Cursor beyond end of line" into "Options\General..." dialog (editor_beyond_eol in ini)
Signed-off-by: Ilia Maslakov <il.smind@google.com>
2009-08-17 18:11:20 +00:00
Ilia Maslakov
f4fc6ad79d Ticket #1534 (cool cooledit)
first commit for support drag cursor after end of line

    * change mouse movement, allow place cursor after EOL
    * change vertical select
    * fix: right scroll

Signed-off-by: Ilia Maslakov <il.smind@google.com>
2009-08-17 18:11:20 +00:00
Andrew Borodin
ae494fd168 Merge branch '1414-scalable-ui'
* 1414-scalable-ui:
  Ticket #1414: implemented scalable TUI.
  Ticket #1414: small refactoring before major modifications.
2009-08-17 15:55:36 +04:00
Andrew Borodin
bc09ff3888 Ticket #1414: implemented scalable TUI.
Thanks to E.L.K.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-08-17 15:54:39 +04:00
Andrew Borodin
f2e6817363 Ticket #1414: small refactoring before major modifications.
Fixed missed includes.
Fised widget_set_size() declaration.
Moved default widget callback (default_proc()) from dialog.[ch] to widget.[ch].

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-08-17 15:54:39 +04:00
Martin Petricek
3033429645 Ticket #268 (Allow using SI-based size prefixes)
* add: switching between old (default) 1024 based "binary" prefixes
           and SI (1000 based) size prefixes when displaying file sizes

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>

    Size in SI units: changed option name and description.

    * Changed option name in 'Configuration options' dialog.
    * Moved description to proper section in man page.
    * Added russian translation.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-08-17 11:14:59 +00:00
Ilia Maslakov
2289c62c6e Ticket #267 (etags incorrect get the line number definition)
fix: etags incorrect get the line number of function definition
2009-08-15 11:36:57 +00:00
Ilia Maslakov
bf6d6bafb4 Ticket #364 (Broken keymap after external command)
fix: broken keymap after run external command (like ispell)
2009-08-15 09:09:21 +00:00
Patrick Winnertz
956f36a534 Merge branch '1533_german_date_broken'
* 1533_german_date_broken:
  Removed three unneeded variables
  Ticket #1533: Fix the date issue on german locale. Use a #define
2009-08-15 08:54:49 +02:00
Patrick Winnertz
1baf186c16 Removed three unneeded variables
Signed-off-by: Patrick Winnertz <winnie@debian.org>
2009-08-14 19:18:08 +02:00
Patrick Winnertz
21069fb83d Ticket #1533: Fix the date issue on german locale. Use a #define
for consistent translation of the date through whole util.c

Signed-off-by: Patrick Winnertz <winnie@debian.org>
2009-08-14 19:03:51 +02:00
Andrew Borodin
896045613b Merge branch '38_maxpathlen'
* 38_maxpathlen:
  Ticket #38: use MC_MAXPATHLEN insterd of MAXPATHLEN.
2009-08-14 12:07:51 +04:00
IMDagger
a57ff08d12 Ticket #38: use MC_MAXPATHLEN insterd of MAXPATHLEN.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-08-14 09:40:45 +04:00
Andrew Borodin
a00da670ee Merge branch '38_info_panel_return_to_wrong_dir'
* 38_info_panel_return_to_wrong_dir:
  Ticket 38: return from Info panel to wrong directory.
2009-08-13 17:01:29 +04:00
IMDagger
c17ebc96ac Ticket 38: return from Info panel to wrong directory.
When viewing two file lists, if user presses C-x i for info on
a panel's directory or file, the info pops up correctly in the
other panel. However, when the user closes the info screen, the
directory of the current panel is shown -- NOT the directory
which was being viewed before the info panel appeared.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-08-13 17:00:58 +04:00
Slava Zanko
8b68cce757 Merge branch '186_prompt_fixups'
* 186_prompt_fixups:
  Ticket #186: prompt fixups
2009-08-13 15:38:20 +03:00
Slava Zanko
1a3e71c03c Ticket #186: prompt fixups
TestCase:
 * Have a mc running where you have two different directories in each panel.
 * Tab, so that you are in the other panel.
 * Ctrl-O to go to subshell.
 * You see two different prompts printed next to each other.

Fix issue:
In function src/main.c:do_update_prompt(): added '\r\n' before show prompt.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-08-13 10:01:44 +03:00
Slava Zanko
a01eca0eee Merge branch '121_support_IPv6'
* 121_support_IPv6:
  Ticket #121 (support IPv6).
2009-08-13 00:33:06 +03:00
Jindrich Novy
b1b3be843c Ticket #121 (support IPv6).
Implemented support of IPv6 protocol in FTP connections.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-08-13 00:32:26 +03:00
Ilia Maslakov
9e0316c777 Ticket #1474 (fix slang include)
fix: typo in #include <slang.h> section
2009-08-12 19:32:50 +00:00
Andrew Borodin
e1cbec7be9 Ticket #1474: merge HACK_tty branch to master one.
Merge branch 'HACK_tty'

* HACK_tty: (76 commits)
  TTY: use tty_print_string() instead of printw().
  Added check for version of S-Lang. Minimal version is 2.0
  Modified the hintbar draw update.
  Fixed dialog colors definition, setup and handling.
  Revert "src/help.c: minor refactoring."
  TTY: removed slang1 related code.
  src/help.c: minor refactoring.
  src/main.c: minor refactoring
  TTY: moved SIGWINCH setup function to TTY layer.
  Panel: fixed width of second column in brief listing mode.
  Moved do_possible_cd() function from main.c to execute.c.
  Screen: moved maybe_cd() function from main.c to screen.c.
  Fix after rebase.
  VFS: removed unnedeed includes of tty/tty.h header.
  Moved panel update functions from main.c to screen.c.
  TTY: moved alternate_plus_minus variable to TTY layer.
  WListbox: some draw modifications.
  WListbox: removed widget sizes duplication.
  Listbox window: without button, listbox only.
  Listbox window: apply main menu colors to the user menu.
  ...
2009-08-12 21:27:26 +04:00
Andrew Borodin
c5490f8a13 TTY: use tty_print_string() instead of printw().
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-08-12 21:26:02 +04:00
Slava Zanko
5b0218337f Added check for version of S-Lang. Minimal version is 2.0
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-08-12 21:23:55 +04:00
Andrew Borodin
e7ac83b48a Modified the hintbar draw update.
Since midnight_dlg can be invisible during screen resize,
don't update the hintbar in SIGWING signal handling function.
Now the hintbar is updated during DLG_DRAW message handling
in mignight_dlg callback.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-08-12 21:23:55 +04:00
Andrew Borodin
5feea4aead Fixed dialog colors definition, setup and handling.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-08-12 21:23:55 +04:00
Andrew Borodin
791404055b Revert "src/help.c: minor refactoring."
This reverts commit f070d94275c0e41bed4878caf60f8254473f3486.
Help is displayed incorrectly.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-08-12 21:23:55 +04:00
Andrew Borodin
d7d3267594 TTY: removed slang1 related code.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-08-12 21:23:55 +04:00
Andrew Borodin
e6e97f8cd9 src/help.c: minor refactoring.
Used TTY wrapper. Type accuracy.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-08-12 21:23:55 +04:00
Andrew Borodin
0c278498d5 src/main.c: minor refactoring
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-08-12 21:23:55 +04:00
Andrew Borodin
d1122efe92 TTY: moved SIGWINCH setup function to TTY layer.
Also renamed SIGWINCH signal handler.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-08-12 21:23:55 +04:00
Andrew Borodin
16ceccc6df Panel: fixed width of second column in brief listing mode.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-08-12 21:23:55 +04:00
Andrew Borodin
cf2ecb4491 Moved do_possible_cd() function from main.c to execute.c.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-08-12 21:23:55 +04:00
Andrew Borodin
d21c8dc448 Screen: moved maybe_cd() function from main.c to screen.c.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-08-12 21:23:55 +04:00
Andrew Borodin
2c4beaafba Fix after rebase.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-08-12 21:23:55 +04:00
Andrew Borodin
05b89b3bab VFS: removed unnedeed includes of tty/tty.h header.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-08-12 21:23:55 +04:00
Andrew Borodin
5cd4a8ad83 Moved panel update functions from main.c to screen.c.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-08-12 21:23:55 +04:00
Andrew Borodin
c43bb6f576 TTY: moved alternate_plus_minus variable to TTY layer.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-08-12 21:23:55 +04:00
Andrew Borodin
d6dc828c0c WListbox: some draw modifications.
Draw scrollbar if widget vertical size is less than item count.
Add leading space.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-08-12 21:23:55 +04:00
Andrew Borodin
1b343c7609 WListbox: removed widget sizes duplication.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-08-12 21:23:55 +04:00
Andrew Borodin
32a52f9fb5 Listbox window: without button, listbox only.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-08-12 21:23:54 +04:00