- When using slang 2.x, call SLutf8_enable() with an argument of
1 instead of TRUE, as that's the proper way to enable its
UTF-8 support. Changes to main() and configure.ac. (DLR)
+ - Fix punctuation relating to "i.e." in comments and
+ documentation. (Benno Schulenberg and DLR)
- browser.c:
do_browser()
- Refactor the mouse support, modeling it after do_mouse() for
do_justify(); new functions do_justify_void() and
do_full_justify(). (DLR)
- Modify the justification algorithm to work the same way as in
- the current version of Pico, i.e, add a space at the end of
+ the current version of Pico, i.e. add a space at the end of
each line of the justified paragraph except for the last one,
and if there was a space at the end of the last one, remove
it. Changes to justify_format() and do_justify(). Note that
- Change instances in the code that refresh the entire edit
window when color support is enabled (in order to properly
handle multi-line color regexes) to only do so when
- it's necessary, i.e, when COLOR_SYNTAX is set. (DLR)
+ it's necessary, i.e. when COLOR_SYNTAX is set. (DLR)
- Minor cosmetic tweaks to the code involving direction keys.
NANO_UP_KEY and NANO_DOWN_KEY are now NANO_PREVLINE_KEY and
NANO_NEXTLINE_KEY, and the help messages for them have been
the statusbar input routines to handle them and NANO_HELP_FKEY
properly. (DLR)
- Block SIGWINCH after setting up its handler, and only unblock
- and handle it when we're in a stable state, i.e, when we're
+ and handle it when we're in a stable state, i.e. when we're
waiting for input from the user. New function
allow_pending_sigwinch(); changes to signal_init(),
get_kbinput(), and get_verbatim_kbinput(). (DLR)
- Don't use "kbinput = wgetch(win)" as a switch value. (DLR)
get_escape_seq_kbinput()
- Add support for the escape sequences for F1-F14 whenever
- possible (i.e, whenever a conflict doesn't occur), some
+ possible (i.e. whenever a conflict doesn't occur), some
additional comments, and a few cosmetic cleanups. (DLR)
- Use switch statements instead of strncmp() to read in the long
xterm sequences for Ctrl-[arrow key] and Shift-[arrow key].
do_credits()
- Use nanosleep() instead of usleep(). The latter is only
standard under BSD, whereas the former is POSIX compliant.
- Accordingly, only include time.h if we use this function, i.e,
+ Accordingly, only include time.h if we use this function, i.e.
if NANO_EXTRA is defined. (DLR)
- Add explanatory comment. (DLR)
- configure.ac:
broken regex detection, search history recall, and
keypad handling with -K. Debugging strings are no
longer translated and comments denote where translations
- should be as short as possible (i.e, the statusbar).
+ should be as short as possible (i.e. the statusbar).
There are new examples for syntax highlighting, and
documentation updates and fixes. The 1.3.0 CVS tree
will be opening soon for all your nano desires, so stay
mode (^O,M-P), a new "syntax" command in the .nanorc to
allow multiple syntax highlighting types, and a new -Y,
--syntax flag to set a specific one if there's no
- filename regex to match it against (i.e, w/mutt). The
+ filename regex to match it against (i.e. w/mutt). The
^space and M-space keys will now show up in the help
menu, which itself has been tweaked a bit, and many more
configure options should now cooperate (like the odd
resizing the editor in any mode other than normal edit
mode. Other fixes include some more tab completion
segfaults, and an silly segfault that occurred when
- successfully writing a file on the 2nd try (i.e, after
+ successfully writing a file on the 2nd try (i.e. after
an initial write error). Slowly but surely, on toward
1.0 we travel.
05/14/2000 - Nano 0.9.7 (the Mother's Day release) continues in the long
line of display fixes, and also fixes the broken symlink
- behavior (i.e, symlinks weren't being followed by
+ behavior (i.e. symlinks weren't being followed by
default). Hopefully all major bugs can be worked out
soon and we can have a 1.0 release before the end of the
year, but who knows.
04/14/2000 - 0.9.1 has some more Pico compatibility built-in. The
option to switch to/from Search and Search/Replace (^T)
is now available, and nano now displays the more
- Pico-like shortcut list when invoked as 'pico' (i.e, if
+ Pico-like shortcut list when invoked as 'pico' (i.e. if
'pico' is a symlink to nano). There is an important
change to the handling of symbolic links as well. Now,
nano does the "correct" thing and automatically writes
$ make install
-which should copy various files (i.e, the nano executable, the info and
+which should copy various files (i.e. the nano executable, the info and
man pages, and syntax highlighting pattern files) to their appropriate
directories.
bool dots = (COLS >= 15 && filetaillen >= longest -
foomaxlen - 1);
/* Do we put an ellipsis before the filename? Don't set
- * this to TRUE if we have fewer than 15 columns (i.e, 1
+ * this to TRUE if we have fewer than 15 columns (i.e. 1
* column for padding, plus 7 columns for a filename
* other than ".."). */
char *disp = display_string(filetail, dots ? filetaillen -
/* Show information about the file. We don't want to report
* file sizes for links, so we use lstat(). */
if (lstat(filelist[i], &st) == -1 || S_ISLNK(st.st_mode)) {
- /* If the file doesn't exist (i.e, it's been deleted while
+ /* If the file doesn't exist (i.e. it's been deleted while
* the file browser is open), or it's a symlink that doesn't
* point to a directory, display "--". */
if (stat(filelist[i], &st) == -1 || !S_ISDIR(st.st_mode))
else if (openfile->current != openfile->filebot) {
/* If we're at the end of the line, and it isn't the last line
* of the file, move all the text from the current position up
- * to the beginning of the next line, i.e, the newline at the
+ * to the beginning of the next line, i.e. the newline at the
* end, into the cutbuffer. */
move_to_filestruct(&cutbuffer, &cutbottom, openfile->current,
openfile->current_x, openfile->current->next, 0);
openfile->filebot);
/* If the NO_NEWLINES flag isn't set, and text has been added to
- * the magicline (i.e, a file that doesn't end in a newline has been
+ * the magicline (i.e. a file that doesn't end in a newline has been
* inserted at the end of the current buffer), add a new magicline,
* and move the current line down to it. */
if (!ISSET(NO_NEWLINES) && openfile->filebot->data[0] != '\0') {
assert(longest_name <= COLS - 1);
- /* Each column will be (longest_name + 2) columns wide, i.e,
+ /* Each column will be (longest_name + 2) columns wide, i.e.
* two spaces between columns, except that there will be
* only one space after the last column. */
columns = (COLS + 1) / (longest_name + 2);
* number of nano, the name of the current file, and whether the
* current file has been modified. */
WINDOW *edit;
- /* The middle portion of the window, i.e, the edit window, where
+ /* The middle portion of the window, i.e. the edit window, where
* we display the current file we're editing. */
WINDOW *bottomwin;
/* The bottom portion of the window, where we display statusbar
}
#endif /* !NANO_TINY */
-/* Return the placewewant associated with statusbar_x, i.e, the
+/* Return the placewewant associated with statusbar_x, i.e. the
* zero-based column position of the cursor. The value will be no
* smaller than statusbar_x. */
size_t statusbar_xplustabs(void)
editwinrows - 1;
/* Calculate the y-coordinate relative to the
* beginning of the Yes/No/All shortcuts in
- * bottomwin, i.e, with the sizes of topwin,
+ * bottomwin, i.e. with the sizes of topwin,
* edit, and the first line of bottomwin
* subtracted out. */
/* A new process to run spell in. */
if ((pid_spell = fork()) == 0) {
- /* Child continues (i.e, future spell process). */
+ /* Child continues (i.e. future spell process). */
close(spell_fd[0]);
/* Replace the standard input with the temp file. */
/* A new process to run sort in. */
if ((pid_sort = fork()) == 0) {
- /* Child continues (i.e, future spell process). Replace the
+ /* Child continues (i.e. future spell process). Replace the
* standard input with the standard output of the old pipe. */
if (dup2(spell_fd[0], STDIN_FILENO) != STDIN_FILENO)
goto close_pipes_and_exit;
/* A new process to run uniq in. */
if ((pid_uniq = fork()) == 0) {
- /* Child continues (i.e, future uniq process). Replace the
+ /* Child continues (i.e. future uniq process). Replace the
* standard input with the standard output of the old pipe. */
if (dup2(sort_fd[0], STDIN_FILENO) != STDIN_FILENO)
goto close_pipes_and_exit;
return column - (COLS - 2);
}
-/* Return the placewewant associated with current_x, i.e, the zero-based
+/* Return the placewewant associated with current_x, i.e. the zero-based
* column position of the cursor. The value will be no smaller than
* current_x. */
size_t xplustabs(void)
}
/* Return the index in s of the character displayed at the given column,
- * i.e, the largest value such that strnlenpt(s, actual_x(s, column)) <=
+ * i.e. the largest value such that strnlenpt(s, actual_x(s, column)) <=
* column. */
size_t actual_x(const char *s, size_t column)
{
#endif
}
- /* If our result is an extended keypad value (i.e, a value
+ /* If our result is an extended keypad value (i.e. a value
* outside of byte range), set func_key to TRUE. */
if (retval != ERR)
*func_key = !is_byte(retval);
i = COLS / ((currslen / 2) + (currslen % 2));
/* Calculate the y-coordinate relative to the beginning of
- * the shortcut list in bottomwin, i.e, with the sizes of
+ * the shortcut list in bottomwin, i.e. with the sizes of
* topwin, edit, and the first line of bottomwin subtracted
* out, and set j to it. */
j = *mouse_y - (2 - no_more_space()) - editwinrows - 1;
blank_line(topwin, 1, 0, COLS);
}
-/* Blank all the lines of the middle portion of the window, i.e, the
+/* Blank all the lines of the middle portion of the window, i.e. the
* edit window. */
void blank_edit(void)
{
if (!newfie) {
size_t lenpt = strlenpt(path), start_col;
- /* Don't set dots to TRUE if we have fewer than 8 columns (i.e,
+ /* Don't set dots to TRUE if we have fewer than 8 columns (i.e.
* 1 column for padding, plus 7 columns for a filename). */
dots = (space >= 8 && lenpt >= space);