Fix various typos in the source code (closes MidnightCommander/mc#177).

Found via `codespell -S
po,doc,./misc/syntax,./src/vfs/extfs/helpers/README.it -L
parm,rouge,sav,ect,vie,te,dum,clen,wee,dynamc,childs,ths,fo,nin,unx,nd,iif,iterm,ser,makrs,wil`

Co-authored-by: Yury V. Zaytsev <yury@shurup.com>
Signed-off-by: Kian-Meng Ang <kianmeng@cpan.org>
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
This commit is contained in:
Kian-Meng Ang 2023-01-10 11:02:52 +08:00 committed by Andrew Borodin
parent 990200f6d3
commit 5001232704
93 changed files with 177 additions and 177 deletions

View File

@ -67,7 +67,7 @@ Antonio Palama, DOS port <palama@posso.dm.unipi.it>
DOS port.
Dmitry Koterov <dmitry.koterov@gmail.com>
s3 extfs bugfixes and emprovements
s3 extfs bugfixes and improvements
Egmont Koblinger <egmont@gmail.com>
Support of 256 colors

View File

@ -215,7 +215,7 @@ mc_UNIT_TESTS
dnl ############################################################################
dnl Check for main libraies
dnl Check for main libraries
dnl ############################################################################
mc_CHECK_GLIB
@ -313,7 +313,7 @@ dnl replacing lstat with statlstat on sco makes it more portable between
dnl sco clones
AC_CHECK_FUNCS(statlstat)
dnl Ovverriding mmap support. This has to be before AC_FUNC_MMAP is used.
dnl Overriding mmap support. This has to be before AC_FUNC_MMAP is used.
dnl We use only part of the functionality of mmap, so on AIX,
dnl it's possible to use mmap, even if it doesn't pass the autoconf test.
AC_ARG_WITH([mmap],

View File

@ -64,7 +64,7 @@ with those from xterm.tcap.
The xterm.ad translation table contains many items (some of them may be
unnecessary) but are included only to make it work on all different xterms
(xterm terminfo and termcap databases have different sequences for the same
keys in every different database, so xterm.ad works as a stardard to make
keys in every different database, so xterm.ad works as a standard to make
xterm.ti and termcap happy). If you find that xterm works well even if you
delete some lines from the translations, feel free to do it.

View File

@ -284,7 +284,7 @@ Version 4.8.24
- VFS
* sftpfs: support keyborad interactive authentication (#3921)
* sftpfs: support keyboard interactive authentication (#3921)
* uc1541 extfs: update up to 3.3 version (#3936)
- Editor
@ -337,7 +337,7 @@ Version 4.8.23
* Expanded syntax highlighting rules (#3975):
- expanded file name regexp for sh.syntax
- use ini.syntax for systemd cofiguration files
- use ini.syntax for systemd configuration files
* Syntax updates:
- shell (#3981)
- ebuild (#3988)
@ -798,7 +798,7 @@ Version 4.8.14
* Info panel can't obtain file system statistics on Solaris (#3277)
* "Shell patterns" broken beyond repair (#2309)
* File selection by patterns uses bytes instead of unicode characters (#2743)
* Copy files dosn't work as expected, when copying to a directory with the special symbol in its name (#3235)
* Copy files doesn't work as expected, when copying to a directory with the special symbol in its name (#3235)
* Wrong order of old_colors table items (#3404)
* Input line: Alt+Backspace on one-letter word erases too much (#3390)
* "Directory scanning" window is too narrow (#3162)
@ -851,7 +851,7 @@ Version 4.8.13
* mcviewer: incorrect percentage in mcview hex mode (#3258)
* RAR VFS incorrectly recognizes UnRAR version (#3240)
* viewbold and viewselected are missing from some skins (#3244)
* Incorrect enconding name for manual page (#3239)
* Incorrect encoding name for manual page (#3239)
* "User menu -> View manual page" doesn't do coloring (#3243)
@ -1164,7 +1164,7 @@ Version 4.8.5
- xlhtml text-mode handler for XLS files
- ppthtml text-mode handler for PPT/PPS files
- open=view+pager fallback (noX) for PostScript, PDF, OD[PST] and DVI
- standarized $DISPLAY checks
- standardized $DISPLAY checks
* File extension support:
- SQLite database files (#2103)
- compiled Java files (*.class) (#2103)
@ -1287,7 +1287,7 @@ Version 4.8.2
- Core
* Added new flag -X (--no-x11) to allow dont't use X11 to get the state of modifiers Alt, Ctrl, Shift (#86)
* Added new flag -X (--no-x11) to allow don't use X11 to get the state of modifiers Alt, Ctrl, Shift (#86)
* Support of '~' as home dir in 'Start at:' field in 'Find File' dialog (#2694)
* Support of '~' as home dir in hotlists (#2747)
* Learn of 'Back Tab' is possible now in 'Learn keys' dialog (#2628)
@ -1409,7 +1409,7 @@ Version 4.8.0-pre2
- VFS
* New extfs plugin: gitfs (#2467)
* patchfs enchancement: join several hunks of the same file into one VFS entry (#2573)
* patchfs enhancement: join several hunks of the same file into one VFS entry (#2573)
- Misc
@ -1476,7 +1476,7 @@ Be aware.
or stay old behaviour (current file under cursor) (#2266)
* Added simple swap mode that means the swap of panel locations, in addition to current swap
of panel content (#2368)
* Cofiguration files now moved to directory specified in XDG_CONFIG_HOME environment variable (#1851)
* Configuration files now moved to directory specified in XDG_CONFIG_HOME environment variable (#1851)
* Panel options are read now from [Panels] section only. [Midnight-Commander] section is not read (#2305)
* "Show mini info" checkbox was moved from the "Layout" dialog window to the "Panel options" one (#2305)
* Select files by shift-left/right in file panel (#2534)
@ -1511,7 +1511,7 @@ Be aware.
* New engine of the editor macro (#323)
* Multiply repeat of the recorded actions (#323)
* Call extermal scripts from the editor (#323, #2512)
* Call external scripts from the editor (#323, #2512)
* Added REDO action (#25)
* Group UNDO by action (#27)
* Selection is not reset after execute user menu (#2463)

View File

@ -213,7 +213,7 @@ load_codepages_list (void)
if (codepages == NULL)
{
/* files are not found, add defaullt codepage */
/* files are not found, add default codepage */
fprintf (stderr, "%s\n", _("Warning: cannot load codepages list"));
codepages = g_ptr_array_new ();

View File

@ -75,7 +75,7 @@ where:
name of the group, where event was initiated
event_name:
event name. event_name ans event_group uniquely identify an event.
event name. event_name and event_group uniquely identify an event.
These parameters can be useful if event handler is tied to several events
and the distinguish between different events (for example, function of logging)
is required.

View File

@ -225,7 +225,7 @@ typedef struct
{
/* Use the specified skin */
char *skin;
/* Dialog window and frop down menu have a shadow */
/* Dialog window and drop down menu have a shadow */
gboolean shadows;
char *setup_color_string;

View File

@ -98,7 +98,7 @@ go_to_end_of_serialized_string (const char *non_serialized_data,
/**
* Serialize some string object to string
*
* @param prefix prefix for serailization
* @param prefix prefix for serialization
* @param data data for serialization
* @param error contain pointer to object for handle error code and message
*

View File

@ -29,7 +29,7 @@
* displaynig: all handled as zero with characters, expect combing character
* at the begin of string, this character has with one (space add before),
* so str_term_width is not good for computing width of singles characters
* (never return zero, expect emtpy string)
* (never return zero, expect empty string)
* for compatibility are strings composed before displaynig
* comparing: comparing decompose all string before comparing, n-compare
* functions do not work as is usual, because same strings do not have to be
@ -54,7 +54,7 @@
*/
typedef enum
{
/* success means, that convertion has been finished successully
/* success means, that conversion has been finished successfully
*/
ESTR_SUCCESS = 0,
/* problem means, that not every characters was successfully converted (They are
@ -156,7 +156,7 @@ struct str_class
/*** global variables defined in .c file *********************************************************/
/* standard convertors */
/* standard converters */
extern GIConv str_cnv_to_term;
extern GIConv str_cnv_from_term;
/* from terminal encoding to terminal encoding */
@ -168,17 +168,17 @@ struct str_class str_utf8_init (void);
struct str_class str_8bit_init (void);
struct str_class str_ascii_init (void);
/* create convertor from "from_enc" to terminal encoding
/* create converter from "from_enc" to terminal encoding
* if "from_enc" is not supported return INVALID_CONV
*/
GIConv str_crt_conv_from (const char *from_enc);
/* create convertor from terminal encoding to "to_enc"
/* create converter from terminal encoding to "to_enc"
* if "to_enc" is not supported return INVALID_CONV
*/
GIConv str_crt_conv_to (const char *to_enc);
/* close convertor, do not close str_cnv_to_term, str_cnv_from_term,
/* close converter, do not close str_cnv_to_term, str_cnv_from_term,
* str_cnv_not_convert
*/
void str_close_conv (GIConv conv);
@ -352,13 +352,13 @@ gboolean str_isprint (const char *ch);
*/
gboolean str_iscombiningmark (const char *ch);
/* write lower from of fisrt characters in ch into out
/* write lower from of first characters in ch into out
* decrase remain by size of returned characters
* if out is not big enough, do nothing
*/
gboolean str_toupper (const char *ch, char **out, size_t * remain);
/* write upper from of fisrt characters in ch into out
/* write upper from of first characters in ch into out
* decrase remain by size of returned characters
* if out is not big enough, do nothing
*/
@ -524,7 +524,7 @@ char *str_create_key_for_filename (const char *text, gboolean case_sen);
*/
int str_key_collate (const char *t1, const char *t2, gboolean case_sen);
/* release_key created by str_create_key, only rigth way to release key
/* release_key created by str_create_key, only right way to release key
* I
*/
void str_release_key (char *key, gboolean case_sen);

View File

@ -380,7 +380,7 @@ str_detect_termencoding (void)
/* On Linux, nl_langinfo (CODESET) returns upper case UTF-8 whether the LANG is set
to utf-8 or UTF-8.
On Mac OS X, it returns the same case as the LANG input.
So let tranform result of nl_langinfo (CODESET) to upper case unconditionally. */
So let transform result of nl_langinfo (CODESET) to upper case unconditionally. */
term_encoding = g_ascii_strup (nl_langinfo (CODESET), -1);
}
@ -983,7 +983,7 @@ strrstr_skip_count (const char *haystack, const char *needle, size_t skip_count)
}
/* --------------------------------------------------------------------------------------------- */
/* Interprete string as a non-negative decimal integer, optionally multiplied by various values.
/* Interpret string as a non-negative decimal integer, optionally multiplied by various values.
*
* @param str input value
* @param invalid set to TRUE if "str" does not represent a number in this format

View File

@ -86,7 +86,7 @@ i18n_checktimelength (void)
if (lt == NULL)
{
/* huh, localtime() doesnt seem to work ... falling back to "(invalid)" */
/* huh, localtime() doesn't seem to work ... falling back to "(invalid)" */
length = str_term_width1 (_(INVALID_TIME_TEXT));
}
else

View File

@ -1,6 +1,6 @@
/** \file timefmt.h
* \brief Header: time formating functions
* \brief Header: time formatting functions
*/
#ifndef MC__UTIL_TIMEFMT_H

View File

@ -450,7 +450,7 @@ static key_define_t xterm_key_defines[] = {
{0, NULL, MCKEY_NOACTION},
};
/* qansi-m terminals have a much more key combinatios,
/* qansi-m terminals have a much more key combinations,
which are undefined in termcap/terminfo */
static key_define_t qansi_key_defines[] = {
/* qansi-m terminal */
@ -2164,7 +2164,7 @@ learn_key (void)
char buffer[256];
char *p = buffer;
tty_keypad (FALSE); /* disable intepreting keys by ncurses */
tty_keypad (FALSE); /* disable interpreting keys by ncurses */
c = tty_lowlevel_getch ();
while (c == -1)
c = tty_lowlevel_getch (); /* Sanity check, should be unnecessary */

View File

@ -364,7 +364,7 @@ tty_reset_shell_mode (void)
void
tty_raw_mode (void)
{
raw (); /* FIXME: uneeded? */
raw (); /* FIXME: unneeded? */
cbreak ();
}

View File

@ -103,7 +103,7 @@ show_rxvt_contents (int starty, unsigned char y1, unsigned char y2)
unsigned char *k;
int bytes, i, j, cols = 0;
y1 += mc_global.keybar_visible != 0 ? 1 : 0; /* i don't knwo why we need this - paul */
y1 += mc_global.keybar_visible != 0 ? 1 : 0; /* i don't know why we need this - paul */
y2 += mc_global.keybar_visible != 0 ? 1 : 0;
while (anything_ready ())
tty_lowlevel_getch ();

View File

@ -384,7 +384,7 @@ size_trunc_sep (uintmax_t size, gboolean use_si)
d = x + sizeof (x) - 1;
*d-- = '\0';
/* @size format is "size unit", i.e. "[digits][space][letters]".
Copy all charactes after digits. */
Copy all characters after digits. */
while (p >= y && !g_ascii_isdigit (*p))
*d-- = *p--;
for (count = 0; p >= y; count++)
@ -895,7 +895,7 @@ get_compression_type (int fd, const char *name)
return COMPRESSION_ZSTD;
str_len = strlen (name);
/* HACK: we must belive to extension of LZMA file :) ... */
/* HACK: we must believe to extension of LZMA file :) ... */
if ((str_len > 5 && strcmp (&name[str_len - 5], ".lzma") == 0) ||
(str_len > 4 && strcmp (&name[str_len - 4], ".tlz") == 0))
return COMPRESSION_LZMA;

View File

@ -363,7 +363,7 @@ my_exit (int status)
* Shell (or command) will be found in paths described in PATH variable
* (if shell parameter doesn't begin from path delimiter)
* @parameter command Command for shell (or first parameter for command, if flags contain EXECUTE_AS_SHELL)
* @return 0 if successfull, -1 otherwise
* @return 0 if successful, -1 otherwise
*/
int
@ -378,12 +378,12 @@ my_system (int flags, const char *shell, const char *command)
*
* @parameter flags addition conditions for running external programs.
* @parameter shell shell (if flags contain EXECUTE_AS_SHELL), command to run otherwise.
* Shell (or command) will be found in pathes described in PATH variable
* Shell (or command) will be found in paths described in PATH variable
* (if shell parameter doesn't begin from path delimiter)
* @parameter ... Command for shell with addition parameters for shell
* (or parameters for command, if flags contain EXECUTE_AS_SHELL).
* Should be NULL terminated.
* @return 0 if successfull, -1 otherwise
* @return 0 if successful, -1 otherwise
*/
int
@ -416,7 +416,7 @@ my_systeml (int flags, const char *shell, ...)
* @parameter command command to run. Command will be found in paths described in PATH variable
* (if command parameter doesn't begin from path delimiter)
* @parameter argv Array of strings (NULL-terminated) with parameters for command
* @return 0 if successfull, -1 otherwise
* @return 0 if successful, -1 otherwise
*/
int
@ -464,7 +464,7 @@ my_systemv (const char *command, char *const argv[])
* Shell (or command) will be found in paths described in PATH variable
* (if shell parameter doesn't begin from path delimiter)
* @parameter argv Array of strings (NULL-terminated) with parameters for command
* @return 0 if successfull, -1 otherwise
* @return 0 if successful, -1 otherwise
*/
int
@ -495,7 +495,7 @@ my_systemv_flags (int flags, const char *command, char *const argv[])
* @parameter command command line of child process
* @parameter read_out do or don't read the stdout of child process
* @parameter read_err do or don't read the stderr of child process
* @paremeter error contains pointer to object to handle error code and message
* @parameter error contains pointer to object to handle error code and message
*
* @return newly created object of mc_pipe_t class in success, NULL otherwise
*/
@ -559,7 +559,7 @@ mc_popen (const char *command, gboolean read_out, gboolean read_err, GError ** e
* p->xxx.len == MC_PIPE_STREAM_UNREAD: stream p->xxx was not read;
* p->xxx.len == MC_PIPE_ERROR_READ: reading error, and p->xxx.errno is set appropriately.
*
* @paremeter error contains pointer to object to handle error code and message
* @parameter error contains pointer to object to handle error code and message
*/
void
@ -666,8 +666,8 @@ mc_pstream_get_string (mc_pipe_stream_t * ps)
/**
* Close pipe and destroy pipe descriptor.
*
* @paremeter p pipe descriptor
* @paremeter error contains pointer to object to handle error code and message
* @parameter p pipe descriptor
* @parameter error contains pointer to object to handle error code and message
*/
void

View File

@ -341,7 +341,7 @@ vfs_s_free_super (struct vfs_class *me, struct vfs_s_super *super)
}
#if 0
/* FIXME: We currently leak small ammount of memory, sometimes. Fix it if you can. */
/* FIXME: We currently leak small amount of memory, sometimes. Fix it if you can. */
if (super->ino_usage != 0)
message (D_ERROR, "Direntry warning",
"Super ino_usage is %d, memory leak", super->ino_usage);

View File

@ -62,7 +62,7 @@
*
* (1) When the last open file in your filesystem gets closed, conditionally
* create a stamp. You do this with vfs_stamp_create(). (The meaning
* of "conditionaly" is explained below.)
* of "conditionally" is explained below.)
*
* (2) When a file in your filesystem is opened, delete the stamp. You do
* this with vfs_rmstamp().
@ -207,7 +207,7 @@ vfs_stamp_create (struct vfs_class *vclass, vfsid id)
const vfs_path_element_t *path_element;
/* There are three directories we have to take care of: current_dir,
current_panel->cwd and other_panel->cwd. Athough most of the time either
current_panel->cwd and other_panel->cwd. Although most of the time either
current_dir and current_panel->cwd or current_dir and other_panel->cwd are the
same, it's possible that all three are different -- Norbert */

View File

@ -1072,7 +1072,7 @@ vfs_path_element_need_cleanup_converter (const vfs_path_element_t * element)
* @param vpath pointer to path structure
* encoding name of charset
*
* @return pointer to path structure (for use function in anoter functions)
* @return pointer to path structure (for use function in another functions)
*/
vfs_path_t *
vfs_path_change_encoding (vfs_path_t * vpath, const char *encoding)

View File

@ -177,7 +177,7 @@ vfs_findgid (const char *gname)
* Create a temporary file with a name resembling the original.
* This is needed e.g. for local copies requested by extfs.
* Some extfs scripts may look at the extension.
* We also protect stupid scripts agains dangerous names.
* We also protect stupid scripts against dangerous names.
*/
int

View File

@ -34,7 +34,7 @@
* \author Pavel Machek
* \date 1995, 1998
* \warning functions like extfs_lstat() have right to destroy any
* strings you pass to them. This is acutally ok as you g_strdup what
* strings you pass to them. This is actually ok as you g_strdup what
* you are passing to them, anyway; still, beware.
*
* Namespace: exports *many* functions with vfs_ prefix; exports
@ -110,8 +110,8 @@ static long vfs_free_handle_list = -1;
* plugin to automatic detect encoding
* path - path to translate
* size - how many bytes from path translate
* defcnv - convertor, that is used as default, when path does not contain any
* #enc: subtring
* defcnv - converter, that is used as default, when path does not contain any
* #enc: substring
* buffer - used to store result of translation
*/

View File

@ -29,7 +29,7 @@ typedef struct history_descriptor_t
int action; /**< return action in the history */
char *text; /**< return text of selected item */
size_t max_width; /**< maximum width of sring in history */
size_t max_width; /**< maximum width of string in history */
struct WListbox *listbox; /**< listbox widget to draw history */
history_create_item_func create; /**< function to create item of @list */

View File

@ -161,7 +161,7 @@ do_show_hist (WInput * in)
history_show (&hd);
/* in->history.list was destroyed in history_show().
* Apply new history and current postition to avoid use-after-free. */
* Apply new history and current position to avoid use-after-free. */
in->history.list = hd.list;
in->history.current = in->history.list;
if (hd.text != NULL)

View File

@ -141,7 +141,7 @@ input_get_ctext (const WInput * in)
*
* @param in input line
*
* @return TRUE if buffer of @in is empty, FALSE othewise.
* @return TRUE if buffer of @in is empty, FALSE otherwise.
*/
static inline gboolean
input_is_empty (const WInput * in)

View File

@ -52,7 +52,7 @@
*
* @param y y-coordinate of left-up corner
* @param x x-coordinate of left-up corner
* @param lines heigth
* @param lines height
* @param cols width
*
* @return newly allocated WRect object.
@ -78,7 +78,7 @@ rect_new (int y, int x, int lines, int cols)
* @param r WRect object
* @param y y-coordinate of left-up corner
* @param x x-coordinate of left-up corner
* @param lines heigth
* @param lines height
* @param cols width
*/
@ -112,7 +112,7 @@ rect_move (WRect * r, int dy, int dx)
* Change size of rectangle area keeping it's position.
*
* @param r WRect object
* @param dl change size value of heigth
* @param dl change size value of height
* @param dc change size value of width
*/
@ -128,9 +128,9 @@ rect_resize (WRect * r, int dl, int dc)
* Change size of rectangle area keeping it's center.
*
* @param r WRect object
* @param dl change size value of y-coordinate and heigth
* Positive value means move up and increase heigth.
* Negative value means move down and decrease heigth.
* @param dl change size value of y-coordinate and height
* Positive value means move up and increase height.
* Negative value means move down and decrease height.
* @param dc change size value of x-coordinate and width
* Positive value means move left and increase width.
* Negative value means move right and decrease width.

View File

@ -442,7 +442,7 @@ widget_set_size (Widget * w, int y, int x, int lines, int cols)
* Change widget position and size.
*
* @param w widget
* @param r WRect obgect that holds position and size
* @param r WRect object that holds position and size
*/
void

View File

@ -212,7 +212,7 @@ void widget_set_options (Widget * w, widget_options_t options, gboolean enable);
void widget_adjust_position (widget_pos_flags_t pos_flags, WRect * r);
void widget_set_size (Widget * w, int y, int x, int lines, int cols);
void widget_set_size_rect (Widget * w, WRect * r);
/* select color for widget in dependance of state */
/* select color for widget in dependence of state */
void widget_selectcolor (Widget * w, gboolean focused, gboolean hotkey);
cb_ret_t widget_draw (Widget * w);
void widget_erase (Widget * w);

View File

@ -35,7 +35,7 @@ enum
/*** structures declarations (and typedefs of structures)*****************************************/
/* Base class for status message of long-time operations.
Useful to show progress of long-time operaions and interrupt it. */
Useful to show progress of long-time operations and interrupt it. */
struct status_msg_t
{

View File

@ -43,7 +43,7 @@ AC_DEFUN([mc_UNIT_TESTS],[
AM_CONDITIONAL(HAVE_TESTS, test x"$have_check" = "xyes")
dnl sighandler_t is GNU extension
dnl AC_USE_SYSTEM_EXTENSIONS is reguired
dnl AC_USE_SYSTEM_EXTENSIONS is required
AC_CHECK_TYPES([sighandler_t], [], [], [
#include <signal.h>
])

View File

@ -8,6 +8,6 @@ AC_DEFUN([AC_REQUIRE_SOCKET],
#include <sys/socket.h>
])
else
AC_MSG_ERROR([Couldnt find socket functions])
AC_MSG_ERROR([Couldn't find socket functions])
fi
])

View File

@ -33,7 +33,7 @@ When I Want To: release next version
Then I Should: download archives from special upload area
and download checksums for archives from special upload area
and verify checksums and archives
and unpack arhives
and unpack archives
and configure with default parameters
and run 'make all install DESTDIR=/tmp/mc-release'
and if everything is okay, keep vote in release ticket

View File

@ -42,6 +42,6 @@
[database]
extensions=cdx;dat;db;dbf;dbi;dbx;fox;mdb;mdn;mdx;msql;mssql;pgsql;sql;ssql
# Hardlinks have lowest precenence to make it colored by file type or extension
# Hardlinks have lowest precedence to make it colored by file type or extension
[hardlink]
type=HARDLINK

View File

@ -129,7 +129,7 @@ d Delete file if a copy exists in the other directory.
+ t t
D Delete tagged files if a copy exists in the other directory.
if [ %d = %D ]; then
echo "The two directores must be different."
echo "The two directories must be different."
exit 1
fi
for i in %t ; do

View File

@ -28,7 +28,7 @@
# modarcon16root
# modarcon16root-defbg
# - like everything running in a 16-color terminal, these skins look ugly
# and are no subsitute for the 256-color versions. As some terminals don't
# and are no substitute for the 256-color versions. As some terminals don't
# support using dark gray as background color, i used a black background
# and adjusted the remaining colors accordingly.
#

View File

@ -28,7 +28,7 @@
# modarcon16root
# modarcon16root-defbg
# - like everything running in a 16-color terminal, these skins look ugly
# and are no subsitute for the 256-color versions. As some terminals don't
# and are no substitute for the 256-color versions. As some terminals don't
# support using dark gray as background color, i used a black background
# and adjusted the remaining colors accordingly.
#

View File

@ -28,7 +28,7 @@
# modarcon16root
# modarcon16root-defbg
# - like everything running in a 16-color terminal, these skins look ugly
# and are no subsitute for the 256-color versions. As some terminals don't
# and are no substitute for the 256-color versions. As some terminals don't
# support using dark gray as background color, i used a black background
# and adjusted the remaining colors accordingly.
#

View File

@ -28,7 +28,7 @@
# modarcon16root
# modarcon16root-defbg
# - like everything running in a 16-color terminal, these skins look ugly
# and are no subsitute for the 256-color versions. As some terminals don't
# and are no substitute for the 256-color versions. As some terminals don't
# support using dark gray as background color, i used a black background
# and adjusted the remaining colors accordingly.
#

View File

@ -28,7 +28,7 @@
# modarcon16root
# modarcon16root-defbg
# - like everything running in a 16-color terminal, these skins look ugly
# and are no subsitute for the 256-color versions. As some terminals don't
# and are no substitute for the 256-color versions. As some terminals don't
# support using dark gray as background color, i used a black background
# and adjusted the remaining colors accordingly.
#

View File

@ -28,7 +28,7 @@
# modarcon16root
# modarcon16root-defbg
# - like everything running in a 16-color terminal, these skins look ugly
# and are no subsitute for the 256-color versions. As some terminals don't
# and are no substitute for the 256-color versions. As some terminals don't
# support using dark gray as background color, i used a black background
# and adjusted the remaining colors accordingly.
#

View File

@ -28,7 +28,7 @@
# modarcon16root
# modarcon16root-defbg
# - like everything running in a 16-color terminal, these skins look ugly
# and are no subsitute for the 256-color versions. As some terminals don't
# and are no substitute for the 256-color versions. As some terminals don't
# support using dark gray as background color, i used a black background
# and adjusted the remaining colors accordingly.
#

View File

@ -28,7 +28,7 @@
# modarcon16root
# modarcon16root-defbg
# - like everything running in a 16-color terminal, these skins look ugly
# and are no subsitute for the 256-color versions. As some terminals don't
# and are no substitute for the 256-color versions. As some terminals don't
# support using dark gray as background color, i used a black background
# and adjusted the remaining colors accordingly.
#

View File

@ -1,5 +1,5 @@
###################################################################################
# (GNU) SmallTalk syntax hilighting by Carlos Rodrigues <a9566@lei.di.fct.unl.pt> #
# (GNU) SmallTalk syntax highlighting by Carlos Rodrigues <a9566@lei.di.fct.unl.pt> #
###################################################################################
# I guess this is not very syntax strict, but it makes the code

View File

@ -55,7 +55,7 @@ gboolean mc_args__nokeymap = FALSE;
char *mc_args__last_wd_file = NULL;
/* when enabled NETCODE, use folowing file as logfile */
/* when enabled NETCODE, use following file as logfile */
char *mc_args__netfs_logfile = NULL;
/* keymap file */
@ -804,7 +804,7 @@ mc_setup_by_args (int argc, char **argv, GError ** mcerror)
if (argc < 3)
{
mc_propagate_error (mcerror, 0, "%s\n",
_("Two files are required to envoke the diffviewer."));
_("Two files are required to invoke the diffviewer."));
return FALSE;
}
MC_FALLTHROUGH;

View File

@ -31,7 +31,7 @@
*/
/* This code does _not_ need to be setuid root. However, it needs
read/write access to /dev/vcsa* (which is priviledged
read/write access to /dev/vcsa* (which is privileged
operation). You should create user vcsa, make cons.saver setuid
user vcsa, and make all vcsa's owned by user vcsa.
@ -42,7 +42,7 @@
* \brief Source: general purpose Linux console screen save/restore server
*
* This code does _not_ need to be setuid root. However, it needs
* read/write access to /dev/vcsa* (which is priviledged
* read/write access to /dev/vcsa* (which is privileged
* operation). You should create user vcsa, make cons.saver setuid
* user vcsa, and make all vcsa's owned by user vcsa.
* Seeing other peoples consoles is bad thing, but believe me, full

View File

@ -2,7 +2,7 @@
* \brief Header: general purpose Linux console screen save/restore server
*
* This code does _not_ need to be setuid root. However, it needs
* read/write access to /dev/vcsa* (which is priviledged
* read/write access to /dev/vcsa* (which is privileged
* operation). You should create user vcsa, make cons.saver setuid
* user vcsa, and make all vcsa's owned by user vcsa.
* Seeing other peoples consoles is bad thing, but believe me, full

View File

@ -186,7 +186,7 @@ open_temp (void **name)
/* --------------------------------------------------------------------------------------------- */
/**
* Alocate file structure and associate file descriptor to it.
* Allocate file structure and associate file descriptor to it.
*
* @param fd file descriptor
* @return file structure
@ -358,7 +358,7 @@ f_gets (char *buf, size_t size, FBUF * fs)
* @param off offset
* @param whence seek directive: SEEK_SET, SEEK_CUR or SEEK_END
*
* @return position in file, starting from begginning
* @return position in file, starting from beginning
*/
static off_t
@ -846,7 +846,7 @@ dff_execute (const char *args, const char *extra, const char *file1, const char
/**
* Reparse and display file according to diff statements.
*
* @param ord DIFF_LEFT if 1nd file is displayed , DIFF_RIGHT if 2nd file is displayed.
* @param ord DIFF_LEFT if 1st file is displayed , DIFF_RIGHT if 2nd file is displayed.
* @param filename file name to display
* @param ops list of diff statements
* @param printer printf-like function to be used for displaying
@ -3606,7 +3606,7 @@ dview_diff_cmd (const void *f0, const void *f1)
}
default:
/* this should not happaned */
/* this should not happened */
message (D_ERROR, MSG_ERROR, _("Diff viewer: invalid mode"));
return FALSE;
}

View File

@ -105,7 +105,7 @@ char *option_filesize_threshold = NULL;
unsigned int edit_stack_iterator = 0;
edit_stack_type edit_history_moveto[MAX_HISTORY_MOVETO];
/* magic sequense for say than block is vertical */
/* magic sequence for say than block is vertical */
const char VERTICAL_MAGIC[] = { '\1', '\1', '\1', '\1', '\n' };
/*** file scope macro definitions ****************************************************************/
@ -461,7 +461,7 @@ edit_load_file (WEdit * edit)
* Restore saved cursor position and/or bookmarks in the file
*
* @param edit editor object
* @param load_position If TRUE, load bookmarks and cursor position and aply them.
* @param load_position If TRUE, load bookmarks and cursor position and apply them.
* If FALSE, load bookmarks only.
*/
@ -1505,7 +1505,7 @@ check_and_wrap_line (WEdit * edit)
/** this find the matching bracket in either direction, and sets edit->bracket
*
* @param edit editor object
* @param in_screen seach only on the current screen
* @param in_screen search only on the current screen
* @param furthest_bracket_search count of the bytes for search
*
* @return position of the found bracket (-1 if no match)
@ -2080,7 +2080,7 @@ edit_init (WEdit * edit, const WRect * r, const vfs_path_t * filename_vpath, lon
{
gboolean to_free = FALSE;
option_auto_syntax = TRUE; /* Resetting to auto on every invokation */
option_auto_syntax = TRUE; /* Resetting to auto on every invocation */
option_line_state_width = option_line_state ? LINE_STATE_WIDTH : 0;
if (edit != NULL)
@ -2305,7 +2305,7 @@ edit_set_codeset (WEdit * edit)
* d
*
* If the stack long int is 0-255 it represents a normal insert (from a backspace),
* 256-512 is an insert ahead (from a delete), If it is betwen 600 and 700 it is one
* 256-512 is an insert ahead (from a delete), If it is between 600 and 700 it is one
* of the cursor functions define'd in edit-impl.h. 1000 through 700'000'000 is to
* set edit->mark1 position. 700'000'000 through 1400'000'000 is to set edit->mark2
* position.

View File

@ -152,7 +152,7 @@ struct WEdit
struct stat stat1; /* Result of mc_fstat() on the file */
unsigned int skip_detach_prompt:1; /* Do not prompt whether to detach a file anymore */
/* syntax higlighting */
/* syntax highlighting */
GSList *syntax_marker;
GPtrArray *rules;
off_t last_get_rule;

View File

@ -345,7 +345,7 @@ editcmd_dialog_select_definition_show (WEdit * edit, char *match_expr, GPtrArray
def_list = listbox_new (1, 1, def_dlg_h - 2, def_dlg_w - 2, FALSE, NULL);
group_add_widget_autopos (GROUP (def_dlg), def_list, WPOS_KEEP_ALL, NULL);
/* fill the listbox with the completions and get the maximim width */
/* fill the listbox with the completions and get the maximum width */
def_max_width = 0;
g_ptr_array_foreach (def_hash, editcmd_dialog_select_definition_add, def_list);

View File

@ -6,7 +6,7 @@
Copyright (C) 1996 Paul Sheer
Writen by:
Written by:
Paul Sheer, 1996
Andrew Borodin <aborodin@vmail.ru>, 2013, 2014
@ -218,7 +218,7 @@ next_tab_pos (off_t x)
static inline off_t
line_pixel_length (unsigned char *t, off_t b, off_t l, gboolean utf8)
{
off_t xn, x; /* position conters */
off_t xn, x; /* position counters */
off_t char_length; /* character length in bytes */
#ifndef HAVE_CHARSET

View File

@ -820,7 +820,7 @@ spell_dialog_spell_suggest_show (WEdit * edit, const char *word, char **new_word
* Show dialog to select language for spell check.
*
* @param languages Array of available languages
* @return name of choosed language
* @return name of chosen language
*/
char *

View File

@ -34,7 +34,7 @@
* \author Mikhail Pobolovets
* \date 2010
*
* Mispelled words are flushed from the syntax highlighting rules
* Misspelled words are flushed from the syntax highlighting rules
* when they have been around longer than
* TRANSIENT_WORD_TIME_OUT seconds. At a cursor rate of 30
* chars per second and say 3 chars + a space per word, we can

View File

@ -208,7 +208,7 @@ static struct
/* number of attributes */
static const size_t check_attr_num = G_N_ELEMENTS (check_attr);
/* modifable attribute numbers */
/* modifiable attribute numbers */
static int check_attr_mod[32];
static int check_attr_mod_num = 0; /* 0..31 */
@ -337,7 +337,7 @@ fileattrtext_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm,
const WRect *wo = &CONST_WIDGET (w->owner)->rect;
widget_default_callback (w, sender, msg, parm, data);
/* intially file name may be wider than screen */
/* initially file name may be wider than screen */
if (fat->filename_width > wo->cols - wx * 2)
{
w->rect.x = wo->x + wx;
@ -975,7 +975,7 @@ chattr_dlg_create (WPanel * panel, const char *fname, unsigned long attr)
const int cb_scrollbar_width = 1;
WRect r;
/* prepate to set up checkbox states */
/* prepare to set up checkbox states */
for (i = 0; i < check_attr_num; i++)
check_attr[i].state = chattr_is_modifiable (i) && (attr & check_attr[i].flags) != 0;

View File

@ -75,7 +75,7 @@ static input_colors_t command_colors;
/** Handle Enter on the command line
*
* @param lc_cmdline string for handling
* @return MSG_HANDLED on sucsess else MSG_NOT_HANDLED
* @return MSG_HANDLED on success else MSG_NOT_HANDLED
*/
static cb_ret_t

View File

@ -192,7 +192,7 @@ static GQueue *erase_list = NULL;
* directories and is used to detect cyclic symbolic links.
* The second ('dest_dirs' below) holds information about just created
* target directories and is used to detect when an directory is copied
* into itself (we don't want to copy infinitly).
* into itself (we don't want to copy infinitely).
* Both lists don't use the linkcount and name structure members of struct
* link.
*/
@ -1347,7 +1347,7 @@ move_file_file (const WPanel * panel, file_op_total_context_t * tctx, file_op_co
if (panel != NULL)
{
/* In case of single file, calculate totals. In case of many files,
totals are calcuated already. */
totals are calculated already. */
return_status =
panel_operate_init_totals (panel, src_vpath, &src_stat, ctx, TRUE,
FILEGUI_DIALOG_ONE_ITEM);
@ -1516,8 +1516,8 @@ recursive_erase (file_op_total_context_t * tctx, file_op_context_t * ctx, const
* 1 if there are no entries besides "." and ".." in the directory path points to,
* 0 else.
*
* ATTENTION! Be carefull when modifying this function (like commit 25e419ba0886f)!
* Some implementations of readdir() in MC VFS (for example, vfs_s_readdir(), whuch is uded
* ATTENTION! Be careful when modifying this function (like commit 25e419ba0886f)!
* Some implementations of readdir() in MC VFS (for example, vfs_s_readdir(), which is used
* in FISH) don't return "." and ".." entries.
*/
static int
@ -1669,7 +1669,7 @@ do_move_dir_dir (const WPanel * panel, file_op_total_context_t * tctx, file_op_c
if (panel != NULL)
{
/* In case of single directory, calculate totals. In case of many directories,
totals are calcuated already. */
totals are calculated already. */
return_status =
panel_operate_init_totals (panel, src_vpath, &src_stat, ctx, TRUE,
FILEGUI_DIALOG_MULTI_ITEM);
@ -1724,7 +1724,7 @@ do_move_dir_dir (const WPanel * panel, file_op_total_context_t * tctx, file_op_c
if (panel != NULL)
{
/* In case of single directory, calculate totals. In case of many directories,
totals are calcuated already. */
totals are calculated already. */
return_status =
panel_operate_init_totals (panel, src_vpath, &src_stat, ctx, TRUE,
FILEGUI_DIALOG_MULTI_ITEM);
@ -2866,7 +2866,7 @@ copy_dir_dir (file_op_total_context_t * tctx, file_op_context_t * ctx, const cha
if (is_in_linklist (dest_dirs, src_vpath, &src_stat) != NULL)
{
/* Don't copy a directory we created before (we don't want to copy
/* Don't copy a directory we created before (we don't want to copy
infinitely if a directory is copied into itself) */
/* FIXME: should there be an error message and FILE_SKIP? - Norbert */
return_status = FILE_CONT;

View File

@ -936,7 +936,7 @@ create_file_manager (void)
midnight_set_buttonbar (the_bar);
#ifdef ENABLE_SUBSHELL
/* Must be done after creation of cmdline and promt widgets to avoid potential
/* Must be done after creation of cmdline and prompt widgets to avoid potential
NULL dereference in load_prompt() -> ... -> setup_cmdline() -> label_set_text(). */
if (mc_global.tty.use_subshell)
add_select_channel (mc_global.tty.subshell_pty, load_prompt, NULL);
@ -1444,7 +1444,7 @@ is_cmdline_mute (void)
/* When one of panels is other than view_listing,
current_panel points to view_listing panel all time independently of
it's activity. Thus, we can't use get_current_type() here.
current_panel should point to actualy current active panel
current_panel should point to actually current active panel
independently of it's type. */
return (!current_panel->active
&& (get_other_type () == view_quick || get_other_type () == view_tree));
@ -1548,7 +1548,7 @@ midnight_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm, void
{
if (!only_leading_plus_minus)
{
/* Special treatement, since the input line will eat them */
/* Special treatment, since the input line will eat them */
if (parm == '+')
return send_message (current_panel, filemanager, MSG_ACTION, CK_Select, NULL);
@ -1561,7 +1561,7 @@ midnight_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm, void
}
else if (!command_prompt || input_is_empty (cmdline))
{
/* Special treatement '+', '-', '\', '*' only when this is
/* Special treatment '+', '-', '\', '*' only when this is
* first char on input line
*/
if (parm == '+')

View File

@ -94,7 +94,7 @@ typedef struct
/* The value of the "preserve Attributes" checkbox in the copy file dialog.
* We can't use the value of "ctx->preserve" because it can change in order
* to preserve file attributs when moving files across filesystem boundaries
* to preserve file attributes when moving files across filesystem boundaries
* (we want to keep the value of the checkbox between copy operations).
*/
gboolean op_preserve;

View File

@ -217,7 +217,7 @@ static mc_search_t *search_content_handle = NULL;
/*** file scope functions ************************************************************************/
/* --------------------------------------------------------------------------------------------- */
/* don't use max macro to avoid double str_term_width1() call in widget length caclulation */
/* don't use max macro to avoid double str_term_width1() call in widget length calculation */
#undef max
static int
@ -556,7 +556,7 @@ find_parm_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm, voi
* If the return value is TRUE, then the following holds:
*
* start_dir, ignore_dirs, pattern and content contain the information provided by the user.
* They are newly allocated strings and must be freed when uneeded.
* They are newly allocated strings and must be freed when unneeded.
*
* start_dir_len is -1 when user entered an absolute path, otherwise it is a length
* of start_dir (which is absolute). It is used to get a relative pats of find results.
@ -638,7 +638,7 @@ find_parameters (WPanel * panel, char **start_dir, ssize_t * start_dir_len,
}
#endif /* ENABLE_NLS */
/* caclulate dialog width */
/* calculate dialog width */
/* widget widths */
cw = str_term_width1 (file_name_label);
@ -1212,7 +1212,7 @@ find_ignore_dir_search (const char *dir)
switch (iabs | dabs)
{
case 0: /* both paths are relative */
case 3: /* both paths are abolute */
case 3: /* both paths are absolute */
/* if ignore dir is not a path of dir -- skip it */
if (strncmp (dir, *ignore_dir, ilen) == 0)
{

View File

@ -21,7 +21,7 @@
/* *INDENT-OFF* */
/* As of May 2014, 128KiB is determined to be the minimium
/* As of May 2014, 128KiB is determined to be the minimum
blksize to best minimize system call overhead.
This can be tested with this script:

View File

@ -828,7 +828,7 @@ setup_panels (void)
if (active)
widget_set_state (mw, WST_SUSPENDED, TRUE);
/* iniitial height of panels */
/* initial height of panels */
height =
r->lines - (menubar_visible ? 1 : 0) - (mc_global.message_visible ? 1 : 0) -
(command_prompt ? 1 : 0) - (mc_global.keybar_visible ? 1 : 0);
@ -1258,7 +1258,7 @@ create_panel (int num, panel_view_mode_t type)
* It's just a quick hack to prevent segfaults. Comment out and
* try following:
* - select left panel
* - invoke menue left/tree
* - invoke menu left/tree
* - as long as you stay in the left panel almost everything that uses
* current_panel causes segfault, e.g. C-Enter, C-x c, ...
*/

View File

@ -326,7 +326,7 @@ struct mount_entry
char *me_type; /* "nfs", "4.2", etc. */
dev_t me_dev; /* Device number of me_mountdir. */
unsigned int me_dummy:1; /* Nonzero for dummy file systems. */
unsigned int me_remote:1; /* Nonzero for remote fileystems. */
unsigned int me_remote:1; /* Nonzero for remote filesystems. */
unsigned int me_type_malloced:1; /* Nonzero if me_type was malloced. */
};

View File

@ -411,7 +411,7 @@ format_item_free (format_item_t * format)
static int
panel_lines (const WPanel * p)
{
/* 3 lines are: top frame, column header, botton frame */
/* 3 lines are: top frame, column header, button frame */
return (CONST_WIDGET (p)->rect.lines - 3 - (panels_options.show_mini_info ? 2 : 0));
}
@ -1400,16 +1400,16 @@ adjust_top_file (WPanel * panel)
}
/* --------------------------------------------------------------------------------------------- */
/** add "#enc:encodning" to end of path */
/* if path end width a previous #enc:, only encoding is changed no additional
/** add "#enc:encoding" to end of path */
/* if path ends width a previous #enc:, only encoding is changed no additional
* #enc: is appended
* retun new string
* return new string
*/
static char *
panel_save_name (WPanel * panel)
{
/* If the program is shuting down */
/* If the program is shutting down */
if ((mc_global.midnight_shutdown && auto_save_setup) || saving_setup)
return g_strdup (panel->name);
@ -1709,7 +1709,7 @@ parse_display_format (WPanel * panel, const char *format, char **error, gboolean
if (i18n_timelength == 0)
{
i18n_timelength = i18n_checktimelength (); /* Musn't be 0 */
i18n_timelength = i18n_checktimelength (); /* Mustn't be 0 */
for (i = 0; panel_fields[i].id != NULL; i++)
if (strcmp ("time", panel_fields[i].id + 1) == 0)
@ -3456,7 +3456,7 @@ directory_history_list (WPanel * panel)
if (!ok)
{
/* Since history is fully modified in history_show(), panel->dir_history actually
* points to the invalid place. Try restore current postition here. */
* points to the invalid place. Try restore current position here. */
size_t i;
@ -4394,7 +4394,7 @@ panel_set_lwd (WPanel * panel, const vfs_path_t * vpath)
/**
* Creatie an empty panel with specified size.
*
* @param panel_name name of panel for setup retieving
* @param panel_name name of panel for setup receiving
*
* @return new instance of WPanel
*/
@ -4482,7 +4482,7 @@ panel_sized_empty_new (const char *panel_name, int y, int x, int lines, int cols
/**
* Panel creation for specified size and directory.
*
* @param panel_name name of panel for setup retieving
* @param panel_name name of panel for setup retrieving
* @param y y coordinate of top-left corner
* @param x x coordinate of top-left corner
* @param lines vertical size
@ -4595,7 +4595,7 @@ panel_reload (WPanel * panel)
/* --------------------------------------------------------------------------------------------- */
/* Switches the panel to the mode specified in the format */
/* Seting up both format and status string. Return: 0 - on success; */
/* Setting up both format and status string. Return: 0 - on success; */
/* 1 - format error; 2 - status error; 3 - errors in both formats. */
int

View File

@ -208,7 +208,7 @@ void panel_deinit (void);
/**
* Empty panel creation.
*
* @param panel_name name of panel for setup retieving
* @param panel_name name of panel for setup retrieving
*
* @return new instance of WPanel
*/
@ -224,7 +224,7 @@ panel_empty_new (const char *panel_name)
/**
* Panel creation for specified directory.
*
* @param panel_name name of panel for setup retieving
* @param panel_name name of panel for setup retrieving
* @param vpath working panel directory. If NULL then current directory is used
*
* @return new instance of WPanel
@ -242,7 +242,7 @@ panel_with_dir_new (const char *panel_name, const vfs_path_t * vpath)
/**
* Panel creation.
*
* @param panel_name name of panel for setup retieving
* @param panel_name name of panel for setup retrieving
*
* @return new instance of WPanel
*/
@ -257,7 +257,7 @@ panel_new (const char *panel_name)
/**
* Panel creation with specified size.
*
* @param panel_name name of panel for setup retieving
* @param panel_name name of panel for setup retrieving
* @param y y coordinate of top-left corner
* @param x x coordinate of top-left corner
* @param lines vertical size

View File

@ -29,7 +29,7 @@
* node ends with a ^D character and starts with a bracket, then the
* name of the node and then a closing bracket. Right after the closing
* bracket a newline is placed. This newline is not to be displayed by
* the help viewer and must be skipped - its sole purpose is to faciliate
* the help viewer and must be skipped - its sole purpose is to facilitate
* the work of the people managing the help file template (xnc.hlp) .
*
* Links in the hypertext file are specified like this: the text that
@ -40,7 +40,7 @@
* The file must contain a ^D at the beginning and at the end of the
* file or the program will not be able to detect the end of file.
*
* Lazyness/widgeting attack: This file does use the dialog manager
* Laziness/widgeting attack: This file does use the dialog manager
* and uses mainly the dialog to achieve the help work. there is only
* one specialized widget and it's only used to forward the mouse messages
* to the appropriate routine.

View File

@ -6,7 +6,7 @@
* node ends with a ^D character and starts with a bracket, then the
* name of the node and then a closing bracket. Right after the closing
* bracket a newline is placed. This newline is not to be displayed by
* the help viewer and must be skipped - its sole purpose is to faciliate
* the help viewer and must be skipped - its sole purpose is to facilitate
* the work of the people managing the help file template (xnc.hlp) .
*
* Links in the hypertext file are specified like this: the text that
@ -17,7 +17,7 @@
* The file must contain a ^D at the beginning and at the end of the
* file or the program will not be able to detect the end of file.
*
* Lazyness/widgeting attack: This file does use the dialog manager
* Laziness/widgeting attack: This file does use the dialog manager
* and uses mainly the dialog to achieve the help work. there is only
* one specialized widget and it's only used to forward the mouse messages
* to the appropriate routine.

View File

@ -130,7 +130,7 @@ OS_Setup (void)
mc_shell_init ();
/* This is the directory, where MC was installed, on Unix this is DATADIR */
/* and can be overriden by the MC_DATADIR environment variable */
/* and can be overridden by the MC_DATADIR environment variable */
datadir_env = g_getenv ("MC_DATADIR");
if (datadir_env != NULL)
mc_global.sysconfig_dir = g_strdup (datadir_env);

View File

@ -50,8 +50,8 @@ typedef struct
the end or the beginning of the panel */
gboolean scroll_center; /* If TRUE, scroll when the cursor hits the middle of the panel */
gboolean mouse_move_pages; /* Scroll page/item using mouse wheel */
gboolean filetype_mode; /* If TRUE then add per file type hilighting */
gboolean permission_mode; /* If TRUE, we use permission hilighting */
gboolean filetype_mode; /* If TRUE then add per file type highlighting */
gboolean permission_mode; /* If TRUE, we use permission highlighting */
qsearch_mode_t qsearch_mode; /* Quick search mode */
gboolean torben_fj_mode; /* If TRUE, use some usability hacks by Torben */
select_flags_t select_flags; /* Select/unselect file flags */

View File

@ -872,7 +872,7 @@ feed_subshell (int how, gboolean fail_on_error)
set_prompt_string ();
if (subshell_ready && !read_command_line_buffer (FALSE))
{
/* If we got here, some unforseen error must have occurred. */
/* If we got here, some unforeseen error must have occurred. */
if (mc_global.shell->type != SHELL_FISH)
{
write_all (mc_global.tty.subshell_pty, "\003", 1);

View File

@ -83,7 +83,7 @@ enum
{
CPIO_UNKNOWN = 0, /* Not determined yet */
CPIO_BIN, /* Binary format */
CPIO_BINRE, /* Binary format, reverse endianity */
CPIO_BINRE, /* Binary format, reverse endianness */
CPIO_OLDC, /* Old ASCII format */
CPIO_NEWC, /* New ASCII format */
CPIO_CRC /* New ASCII format + CRC */

View File

@ -19,14 +19,14 @@ to see what's inside it, path will be
/anypath/my.zip/uzip://some_path/...
In this example, .zip is suffix, but I call vfs 'uzip'. Why? Well,
what this vfs essentially does is UNzip. UN is too long, so I choosed
what this vfs essentially does is UNzip. UN is too long, so I chose
U. Note that sometime in future filesystem like zip may exist: It will
take whole tree and create .zip file from it. So /usr/zip:// will be
zipfile containing whole /usr tree.
If your vfs does not require file to work on, add '+' to the end of name.
Note, that trailing '+' in file name is not a part of vfs name, it is
just an vfs attribue. So you have not use it in vfs commands:
just an vfs attribute. So you have not use it in vfs commands:
cd rpms://

View File

@ -53,7 +53,7 @@ History
* Release 1.2.0.
* The 'rmdir' extfs command of uzip was modified not to fail
when deleting directories that doesn't exist. (A different/
better solution would be to recreate the automaticly deleted
better solution would be to recreate the automatically deleted
directories, but that's slower and harder to implement.)
Strangely, the zip man page does not mention this delete-
empty-directories behavior.
@ -76,7 +76,7 @@ History
* Release 1.0.0: First version.
Differencies between new (Perl) and old (sh/AWK) uzip
Differences between new (Perl) and old (sh/AWK) uzip
=====================================================
The script is written purely in Perl, which (hopefully) means

View File

@ -36,7 +36,7 @@
#
# Settings: (should be set via environment)
# Required:
# AWS_ACCESS_KEY_ID : Amazon AWS acces key (required)
# AWS_ACCESS_KEY_ID : Amazon AWS access key (required)
# AWS_SECRET_ACCESS_KEY : Amazon AWS secret access key (required)
# Optional:
# MCVFS_EXTFS_S3_LOCATION : where to create new buckets: "EU" - default, "USWest", "APNortheast" etc.

View File

@ -540,7 +540,7 @@ class Uc1541(object):
if '/' in display_name:
display_name = display_name.replace('/', '|')
# workaround for space and dash at the beggining of the
# workaround for space and dash at the beginning of the
# filename
char_map = {' ': '~',
'-': '_'}

View File

@ -1,5 +1,5 @@
#! /bin/sh
# Midnight Commander - WIM suport
# Midnight Commander - WIM support
#
# Written by:
# Vadim Kalinnikov <moose@ylsoftware.com>,
@ -21,7 +21,7 @@ WIMFILENAME=$2
mcwim_list() {
# Here we can use "Image count" from output,
# but on some borken images we can get garbage, instead of number
# but on some broken images we can get garbage, instead of number
IMAGECOUNT=`${WIM} info ${WIMFILENAME} | grep Index: | grep -v Boot | wc -l`
IMGNUM=1
VUID=`id -nu`

View File

@ -1,5 +1,5 @@
/*
Virtual File System: FISH implementation for transfering files over
Virtual File System: FISH implementation for transferring files over
shell connections.
Copyright (C) 1998-2023
@ -32,7 +32,7 @@
/**
* \file
* \brief Source: Virtual File System: FISH implementation for transfering files over
* \brief Source: Virtual File System: FISH implementation for transferring files over
* shell connections
* \author Pavel Machek
* \author Michal Svec

View File

@ -1,7 +1,7 @@
/**
* \file
* \brief Header: Virtual File System: FISH implementation for transfering files over
* \brief Header: Virtual File System: FISH implementation for transferring files over
* shell connections
*/

View File

@ -33,7 +33,7 @@
")\n" \
"echo \"### 200\"\n"
/* default file exisits script */
/* default file exists script */
#define FISH_EXISTS_DEF_CONTENT "" \
"#ISEXISTS $FISH_FILENAME\n" \
"ls -l \"/${FISH_FILENAME}\" >/dev/null 2>/dev/null\n" \

View File

@ -183,7 +183,7 @@ dd bs=4096 count=<offset/4096>;
dd bs=<offset%4096> count=1; )
Returns ### 200 on successful exit, ### 291 on successful exit when
reading ended at eof, ### 292 on successfull exit when reading did not
reading ended at eof, ### 292 on successful exit when reading did not
end at eof.
#WRITE <offset> <size> /path/and/filename

View File

@ -258,7 +258,7 @@ static const char *netrcp;
Currently only Amiga ftp servers are handled in a special manner.
When the remote server is an amiga:
a) strip leading slash if necesarry
a) strip leading slash if necessary
b) replace first occurrence of ":/" with ":"
c) strip trailing "/."
*/
@ -1408,7 +1408,7 @@ ftpfs_initconn (struct vfs_class *me, struct vfs_s_super *super)
close (data_sock);
}
/* If passive setup is diabled or failed, fallback to active connections */
/* If passive setup is disabled or failed, fallback to active connections */
if (!ftp_super->use_passive_connection)
{
int data_sock;
@ -1594,7 +1594,7 @@ resolve_symlink_without_ls_options (struct vfs_class *me, struct vfs_s_super *su
dir->symlink_status = FTPFS_RESOLVING_SYMLINKS;
for (flist = dir->file_list->next; flist != dir->file_list; flist = flist->next)
{
/* flist->data->l_stat is alread initialized with 0 */
/* flist->data->l_stat is already initialized with 0 */
fel = flist->data;
if (S_ISLNK (fel->s.st_mode) && fel->linkname != NULL)
{
@ -1887,13 +1887,13 @@ ftpfs_dir_load (struct vfs_class *me, struct vfs_s_inode *dir, const char *remot
{
/* The LIST command may produce an empty output. In such scenario
it is not clear whether this is caused by 'remote_path' being
a non-existent path or for some other reason (listing emtpy
a non-existent path or for some other reason (listing empty
directory without the -a option, non-readable directory, etc.).
Since 'dir_load' is a crucial method, when it comes to determine
whether a given path is a _directory_, the code must try its best
to determine the type of 'remote_path'. The only reliable way to
achieve this is trough issuing a CWD command. */
achieve this is through issuing a CWD command. */
cd_first = TRUE;
goto again;

View File

@ -208,7 +208,7 @@ mktime_from_utc (const struct tm *t)
memcpy (&tc, t, sizeof (struct tm));
/* UTC times are never DST; if we say -1, we'll introduce odd localtime-
* dependant errors. */
* dependent errors. */
tc.tm_isdst = 0;

View File

@ -92,7 +92,7 @@ local_opendir (const vfs_path_t * vpath)
path_element = vfs_path_get_by_index (vpath, -1);
/* On Linux >= 5.1, MC sometimes shows empty directpries on mounted CIFS shares.
/* On Linux >= 5.1, MC sometimes shows empty directories on mounted CIFS shares.
* Rereading directory restores the directory content.
*
* Reopen directory, if first readdir() returns NULL and errno == EINTR.

View File

@ -675,7 +675,7 @@ sftpfs_cb_fill_names (struct vfs_class *me, fill_names_f func)
/**
* Callback for checking if connection is equal to existing connection.
*
* @param vpath_element path element with connetion data
* @param vpath_element path element with connection data
* @param super data with exists connection
* @param vpath unused
* @param cookie unused
@ -724,7 +724,7 @@ sftpfs_new_archive (struct vfs_class *me)
*
* @param super connection data
* @param vpath unused
* @param vpath_element path element with connetion data
* @param vpath_element path element with connection data
* @return 0 if success, -1 otherwise
*/

View File

@ -722,7 +722,7 @@ mcview_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm, void *
delete_hook (&select_file_hook, mcview_hook);
/*
* In some cases when mc startup is very slow and one panel is in quick vew mode,
* In some cases when mc startup is very slow and one panel is in quick view mode,
* @view is registered in two hook lists at the same time:
* mcview_callback (MSG_INIT) -> add_hook (&select_file_hook)
* mcview_hook () -> add_hook (&idle_hook).

View File

@ -177,7 +177,7 @@
* scrolling back by a page) and then walking backwards is reasonably fast, even if the file is
* extremely large and consists of maybe full zeros or something like that. If there's no newline
* found within this limit, just start displaying from there and see what happens. We might get
* some displaying parameteres (most importantly the columns) incorrect, but at least will show the
* some displaying parameters (most importantly the columns) incorrect, but at least will show the
* file without spinning the CPU for ages. When scrolling back to that point, the user might see a
* garbled first line (even starting with an invalid partial UTF-8), but then walking back by yet
* another line should fix it.

View File

@ -1,6 +1,6 @@
/*
Internal file viewer for the Midnight Commander
Function for work with growing bufers
Function for work with growing buffers
Copyright (C) 1994-2023
Free Software Foundation, Inc.

View File

@ -1,5 +1,5 @@
/*
libmc - check if library is independ to $(topsrc)/src directory
libmc - check if library is independent to $(topsrc)/src directory
Copyright (C) 2011-2023
Free Software Foundation, Inc.

View File

@ -87,7 +87,7 @@ START_PARAMETRIZED_TEST (realpath_test, data_source)
{
int ret;
/* realpath(3) produces a canonicalized absolute pathname using curent directory.
/* realpath(3) produces a canonicalized absolute pathname using current directory.
* Change the current directory to produce correct pathname. */
ret = chdir ("/");

View File

@ -131,7 +131,7 @@ START_PARAMETRIZED_TEST (parse_integer_test, parse_integer_test_ds)
/* then */
ck_assert_msg (invalid == data->invalid && actual_result == data->expected_result,
"actial ( %" PRIuMAX ") not equal to\nexpected (%" PRIuMAX ")",
"actual ( %" PRIuMAX ") not equal to\nexpected (%" PRIuMAX ")",
actual_result, data->expected_result);
}
/* *INDENT-OFF* */

View File

@ -217,7 +217,7 @@ static const struct test_vfs_path_tokens_get_ds
2,
"test2://path2/path3"
},
{ /* 6. get 'path2/path3' by 1,2 throught non-LOCAL VFS */
{ /* 6. get 'path2/path3' by 1,2 through non-LOCAL VFS */
"/path1/path2/test1://user:pass@some.host:12345/path3/path4",
1,
2,

View File

@ -1,5 +1,5 @@
/*
lib/widget - tests for hotkey comparision
lib/widget - tests for hotkey comparison
Copyright (C) 2019-2023
Free Software Foundation, Inc.

View File

@ -133,7 +133,7 @@ static const struct get_random_ds
},
{ /* 4. */
MC_HINT_FILE_SIZE + 50,
"P A R A _ 4 ", /* the trailing space it's a bug, but not critical and may be ommited */
"P A R A _ 4 ", /* the trailing space it's a bug, but not critical and may be omitted */
},
};
/* *INDENT-ON* */

Binary file not shown.