Benno Schulenberg
6a064503e5
docs: slightly improve the description of the file browser in the manual
2018-04-28 12:34:39 +02:00
Benno Schulenberg
4d92dffb3a
bindings: rename constupdate to constantshow, cuttoend to cutfromcursor
...
This makes the names of these bindable functions equal to the names of
their corresponding options -- like for all the other toggles that have
a corresponding option.
2018-04-28 12:01:23 +02:00
Benno Schulenberg
4c1c425bbb
bindings: add the 'linenumbers' bindable function
...
This makes the line-numbers toggle rebindable, like all the others.
2018-04-28 11:44:53 +02:00
Benno Schulenberg
21a54a3cf6
syntax: po: highlight also other escaped characters, not just \n
2018-04-27 11:17:12 +02:00
Benno Schulenberg
a0147c5a72
bump version numbers and add a news item for the 2.9.6 release
2018-04-27 10:56:10 +02:00
Benno Schulenberg
553940760e
tweaks: set the correct flags just once for each spell-fixing session
2018-04-25 17:27:15 +02:00
Benno Schulenberg
faa0eb991e
speller: don't add an extra newline when saving the text to a tempfile
...
Set the NO_NEWLINES flag to achieve this. And move the saving and
restoring of the global flags to the main speller routine, so the
flags aren't saved and restored for each internal spell fix.
This fixes https://savannah.gnu.org/bugs/?53742 .
Acked-by: David Lawrence Ramsey <pooka109@gmail.com>
2018-04-25 17:26:14 +02:00
Benno Schulenberg
f54cd02652
tweaks: adjust the translator hint about Yes/No/All
...
There is no longer any need to burden the translators with also
providing the English letters.
2018-04-25 17:14:33 +02:00
Benno Schulenberg
6dd308d0fb
prompt: recognize Yes/No/All in English when the locale gives no match
2018-04-25 17:03:13 +02:00
Benno Schulenberg
4872f42cd2
tweaks: rename a function, to be more distinct from its caller
2018-04-25 12:21:40 +02:00
Benno Schulenberg
62007c84c6
tweaks: invert two conditions and reshuffle, to reduce duplication
2018-04-24 13:27:57 +02:00
Benno Schulenberg
d0f37205af
search: always go forward by default, also when coming from Goto-Line
...
This fixes https://savannah.gnu.org/bugs/?53735 .
2018-04-24 13:13:38 +02:00
Benno Schulenberg
f05874ea23
gnulib: update to its current upstream state
2018-04-24 10:02:04 +02:00
Benno Schulenberg
0d9080a22c
scrolling: don't redraw entire edit window when cursor goes offscreen
...
When the cursor is on the top or bottom line of the edit window, and
an <Up> or <Down> pushes the cursor offscreen, then use edit_scroll()
to bring it back into view, instead of using edit_redraw(), because
the latter would redraw *every row* on the screen, which is a waste
of time.
This addresses https://savannah.gnu.org/bugs/?53562 .
Reported-by: Devin Hussey <husseydevin@gmail.com>
2018-04-24 09:59:39 +02:00
Benno Schulenberg
1ae90e205a
command-execution: do not crash when opening the pipe would fail
...
This fixes https://savannah.gnu.org/bugs/?53723 .
2018-04-23 18:04:25 +02:00
Benno Schulenberg
d53086d38d
completion: correctly do a signed comparison, to avoid a segfault
...
Bug existed since commit 30fc197b
(a month ago) which changed the
type of 'i' from int to size_t, causing the comparison to do the
wrong thing when 'threshold' is negative.
This fixes https://savannah.gnu.org/bugs/?53722 .
Reported-by: Devin Hussey <husseydevin@gmail.com>
2018-04-23 17:09:54 +02:00
Benno Schulenberg
0b6bb37c56
tweaks: improve some comments, and exit with nonzero status upon error
2018-04-23 14:04:08 +02:00
Benno Schulenberg
c43a6fdcc1
tweaks: rename a variable, to match another and to be more visible
2018-04-23 13:04:31 +02:00
Benno Schulenberg
0c613cb1ac
tweaks: rename a variable, to be more clear and to match another
2018-04-23 12:57:58 +02:00
Benno Schulenberg
1e5064ef84
tweaks: fix a typo, remove a blank line, and improve some comments
2018-04-23 12:19:25 +02:00
Benno Schulenberg
5b40bad629
files: prevent a hang when a call to sigaction() would fail
...
Don't try to re-enter curses mode when the terminal is not in
the correct state yet.
This fixes https://savannah.gnu.org/bugs/?53720 .
2018-04-23 11:58:18 +02:00
Benno Schulenberg
45f8fc77e0
tweaks: rename a variable, to be a bit more fitting
2018-04-22 12:05:19 +02:00
Benno Schulenberg
94347f0811
memory: use a reallocation to reduce the amount of leakage
2018-04-22 12:00:26 +02:00
Benno Schulenberg
1a4a3de68b
formatting, linting: redetermine the argument list for every run
...
The formatter or linter might have changed in the meantime -- when
the filename was changed to have a different extension, for example.
This fixes https://savannah.gnu.org/bugs/?53716 .
2018-04-22 11:44:07 +02:00
Benno Schulenberg
bf8bd02558
build: do not prefix an alternative rcfilename with a dot
...
When the user configures nano with --enable-altrcname=name,
the specified name should not be prefixed with a dot.
This fixes https://savannah.gnu.org/bugs/?53694 .
Reported-by: Cody A. Taylor <codemister99@yahoo.com>
2018-04-21 10:03:30 +02:00
Benno Schulenberg
544d426d86
tweaks: group some more of the empty functions together
2018-04-17 10:34:57 +02:00
Benno Schulenberg
30a984661b
syntax: po: highlight also other escaped characters, not just \n
...
Especially color \a and \t, to make it easier to distinguish them
from contiguous text.
2018-04-17 09:56:19 +02:00
Benno Schulenberg
7ab8a4d835
tweaks: improve the ordering of a couple of functions
2018-04-13 21:09:44 +02:00
Benno Schulenberg
0353a24400
tweaks: rearrange a few if statements more symmetrically
2018-04-13 20:43:08 +02:00
Benno Schulenberg
d4304ca88c
search: use a better value to mean "nothing was typed"
...
When the keyboard buffer is empty, return a value that is not equivalent
to <Ctrl+Space>, so that typing a bunch of these while searching is going
on will not result in some of them getting executed afterward.
2018-04-13 20:13:05 +02:00
Benno Schulenberg
02d8da3bdd
tweaks: rename a function, to be more fitting and descriptive
...
It is not an abort but simply a bit of cleaning up.
2018-04-13 10:32:29 +02:00
Benno Schulenberg
7a09b655c1
tweaks: rename a variable, for clarity
2018-04-13 10:22:39 +02:00
Benno Schulenberg
c8b26baee8
tweaks: elide a function that is called just once
...
Also adjust and correct a comment.
2018-04-13 10:17:08 +02:00
Liu Hao
bb394990cd
replacing: always clear the backwards flag for ^\, just like for ^W
...
This makes it easier to predict in which direction the replacements
will go when hitting ^\ or M-R.
Signed-off-by: Liu Hao <lh_mouse@126.com>
2018-04-12 20:32:15 +02:00
Benno Schulenberg
7c5d099c6f
tweaks: frob a couple of comments
2018-04-01 21:07:18 +02:00
Benno Schulenberg
152cc24d1f
tweaks: reshuffle two declarations
2018-04-01 20:08:57 +02:00
Benno Schulenberg
8965103a4d
tweaks: remove the group handling for undoing/redoing (un)indents
...
Indenting/unindenting always happens in a single contiguous block.
Lines that cannot or should not be indented or unindented do not
need to remembered separately as it follows from their content.
2018-04-01 11:41:26 +02:00
Benno Schulenberg
d0d293b8af
tweaks: correct or improve a couple of comments
2018-04-01 11:24:44 +02:00
Benno Schulenberg
839743fd24
tweaks: move a function to its proper location
2018-04-01 10:54:14 +02:00
Benno Schulenberg
0b30835dd0
tweaks: use meaningful names instead of puzzling values
...
Suggested-by: Brand Huntsman <alpha@qzx.com>
2018-04-01 09:49:58 +02:00
Benno Schulenberg
a865c25eea
build: fix compilation when configured with --disable-help
...
This fixes https://savannah.gnu.org/bugs/?53532 .
2018-03-31 16:52:22 +02:00
Benno Schulenberg
cf1129a8b4
syntax: sh: colorize options only when they are preceded by whitespace
...
To prevent any filenames containing hyphens getting partially colored.
Reported-by: Brand Huntsman <alpha@qzx.com>
2018-03-30 10:46:56 +02:00
Benno Schulenberg
0cd833e64b
tweaks: move a function to its proper location
...
Put it after the function that it calls, and before the functions
it is called from.
2018-03-30 10:34:40 +02:00
Benno Schulenberg
cbf226476d
rcfile: skip color commands where some color name is invalid
...
That is, do not fall back to the default background color when the
name for the background color is invalid, but reject the entire
color command, just like for an invalid foreground color.
2018-03-30 10:30:55 +02:00
Benno Schulenberg
9fcfee18e8
po: update translations and regenerate POT file and PO files
2018-03-29 10:17:00 +02:00
Benno Schulenberg
27eccbec23
bump version numbers and add a news item for the 2.9.5 release
2018-03-29 09:59:13 +02:00
Benno Schulenberg
0bce5ba4d9
syntax: sh: color options distinctively, and color also long options
...
Also add some comments, and accept hyphens in function names.
2018-03-29 09:51:39 +02:00
Benno Schulenberg
f9415e347a
docs: clarify how the Linux console is deficient: in the arrow keys
2018-03-28 19:34:26 +02:00
Benno Schulenberg
f3c4dadcf6
build: fix compilation with --enable-{tiny,help,multibuffer}
2018-03-28 16:37:47 +02:00
Benno Schulenberg
20d1823d90
syntax: sh: uncolor "tar" when it's part of a filename
2018-03-28 14:04:00 +02:00