Benno Schulenberg
1695463347
tweaks: correct two conditions for conditional compilation
2017-07-06 21:47:11 +02:00
Benno Schulenberg
f46544f67b
tweaks: chuck two useless asserts, and elide a call to strncasecmp()
2017-07-06 10:31:35 +02:00
Benno Schulenberg
9462ba8217
tweaks: simplify the parsing of color combinations
2017-07-06 09:46:17 +02:00
Benno Schulenberg
23f5515fbb
build: for Solaris, tell the linker to use a threading lib
...
This fixes https://savannah.gnu.org/bugs/?51348 .
Reported-by: Henrik Karlsson <henrik.karlsson@pulsen.se>
Tested-by: John Wiersba <jrw32982@yahoo.com>
2017-07-05 21:18:52 +02:00
Benno Schulenberg
747310562c
tweaks: avoid a failure with black diamonds in a PDF
2017-07-03 17:40:37 +02:00
Benno Schulenberg
1ae97076cd
docs: make the guillemot and the middle dot appear correctly in HTML
...
For the man page, encode them properly, and for the Info stuff,
just set the right document encoding.
This fixes https://savannah.gnu.org/bugs/?51369 .
2017-07-03 13:03:54 +02:00
Benno Schulenberg
09f516a58b
syntax: man, groff: fix the string that introduces a comment
...
The comment marker is not «."» but «.\"», which requires three
backslashes to specify. Also adjust the documentation.
2017-07-03 11:07:21 +02:00
David Lawrence Ramsey
025232b25b
docs: mention the default values for comment and whitespace directives
...
Also, use proper mark-up for the examples.
2017-07-03 10:43:09 +02:00
David Lawrence Ramsey
7c41c8641f
tweaks: remove unneeded braces, and mark empty parameter list as void
...
This matches the style in the rest of the code.
2017-07-03 09:52:13 +02:00
David Lawrence Ramsey
6295cca03b
tweaks: correct a parameter type, and correct two empty initializations
...
This avoids some warnings when compiled with -pedantic:
ISO C forbids comparison of ‘void *’ with function pointer
ISO C forbids empty initializer braces
2017-07-03 09:40:55 +02:00
Benno Schulenberg
1c05090a4a
syntax: gentoo: make it clearer that the file contains two syntaxes
2017-07-02 20:27:04 +02:00
Benno Schulenberg
14bd52ced8
display: wipe stale messages from the status bar straightaway
...
When blank_statusbar() has been called, make sure it is effective.
This fixes https://savannah.gnu.org/bugs/?51358 .
2017-07-02 19:57:11 +02:00
Benno Schulenberg
7d46eff738
display: when back in the main loop, always redraw the help lines
...
(Well, redraw them when they're switched on, of course.) Redraw
them so that they are shown correctly if their content changed.
This fixes https://savannah.gnu.org/bugs/?51356 .
and fixes https://savannah.gnu.org/bugs/?51357 .
2017-07-02 19:57:11 +02:00
Benno Schulenberg
84b6525914
tweaks: adjust an error message so it fits all possible cases
...
The thing after a 'comment' directive is just a string, not the
name of a program nor a command.
2017-07-02 19:55:28 +02:00
David Lawrence Ramsey
2abe7c03fe
text: make sure commenting is disabled when comment "" was specified
...
When the active syntax contains a comment command that specifies the
empty string, this should override the default comment of "#" and
should disable the Meta-3 keystroke.
To achieve this, the comment string is now set by default to "#" for
all syntaxes, so that it will be set when no comment command is given
(including for the "none" syntax), and is unset only by explicitly
specifying «comment ""» in a syntax file.
This fixes https://savannah.gnu.org/bugs/?51355 .
Reported-by: David Lawrence Ramsey <pooka109@gmail.com>
2017-07-02 19:44:56 +02:00
Benno Schulenberg
bf72cdd814
tweaks: rename two variables, to make a little sense
...
And rename a third variable, to match another in its style.
2017-07-02 12:05:12 +02:00
Benno Schulenberg
8e3f40155c
input: recognize the Ctrl+Arrow key sequences from Haiku's Terminal
2017-07-02 11:58:43 +02:00
Benno Schulenberg
4239e5fe1a
tweaks: put declarations always first, so it will compile on Haiku
2017-07-02 11:53:59 +02:00
David Lawrence Ramsey
d1ee41f319
usage: a dash doesn't have to come first among the filenames
2017-06-30 10:25:49 +02:00
Benno Schulenberg
b93767b54f
screen: defeat a VTE/Konsole bug also for the case of --constantshow
...
When also --nohelp is active and the terminal is so narrow that the
message that --constantshow displays on the bottom row does not fit,
this causes the cursor to be pushed "offscreen". Some terminal
emulators don't handle this case correctly, and leave the cursor
in an invisible or mistaken position. Compensate for this by
moving the cursor back to the start of the row.
This fixes https://savannah.gnu.org/bugs/?51335 .
Reported-by: David Lawrence Ramsey <pooka109@gmail.com>
2017-06-30 10:08:17 +02:00
Benno Schulenberg
8fbf10428c
tweaks: avoid an unused-variable warning for the tiny version
...
The extra variable is not needed, because when having read from
standard input, the filename will simply be empty. It will not
be empty for any other file that was read.
2017-06-30 09:58:40 +02:00
Benno Schulenberg
3719d8e208
docs: be more precise about when a dash is given instead of a filename
...
The dash doesn't have to be the first non-option argument: it can
be anywhere among the filenames -- there can even be multiple ones
(but don't mention this explicitly).
2017-06-29 20:56:58 +02:00
Benno Schulenberg
50cbde8b23
syntax: nanorc: don't color numeric arguments specially
...
Negative arguments of 'fill' are bright green since a few commits.
So now color all valid numeric arguments in that same style -- the
yellow was hard to see on a dark background anyway.
Also, color a zero tabsize as invalid.
2017-06-29 19:45:39 +02:00
David Lawrence Ramsey
9ffd3c0222
docs: consistently describe the -U/-c and -r/-w overrides
2017-06-29 17:48:50 +02:00
David Lawrence Ramsey
2704b3874b
syntax: nanorc: properly color a "fill" option with a negative value
2017-06-29 17:25:09 +02:00
Benno Schulenberg
139f9c2fe5
files: warn more conspicuously when the file on disk has changed
...
This partially adresses https://savannah.gnu.org/bugs/?50998 .
2017-06-29 10:59:51 +02:00
Benno Schulenberg
580fa53aba
tweaks: spell an option correctly in NEWS
2017-06-29 10:59:05 +02:00
David Lawrence Ramsey
2380ee20c5
tweaks: fix a typo in NEWS
2017-06-29 10:56:14 +02:00
Benno Schulenberg
c0a52372f1
docs: drop the cluttering Info-style links from the HTML manual
...
Especially: get rid of the "Up: (dir)" link that points nowhere.
Also, add a horizontal line before the final Table of Contents.
2017-06-27 19:55:12 +02:00
Benno Schulenberg
fd8ce7af8e
po: regenerate POT file and PO files
2017-06-25 11:09:38 +02:00
Benno Schulenberg
c5a0c9b6b2
tweaks: baptize the previous release
2017-06-25 10:59:40 +02:00
Benno Schulenberg
6520aa0079
bump version numbers and add a news item for the 2.8.5 release
2017-06-25 10:37:17 +02:00
Benno Schulenberg
3d8b9895b8
gnulib: update to its current state
2017-06-25 10:05:27 +02:00
Benno Schulenberg
9026e04c73
startup: don't use position history when reading from standard input
2017-06-23 13:44:01 +02:00
Benno Schulenberg
92befae93d
startup: don't mark the buffer as modified when in view mode
2017-06-23 10:43:52 +02:00
Benno Schulenberg
dbbc14e0ac
tweaks: be consistent in the spelling of title bar and status bar
2017-06-23 10:33:19 +02:00
Benno Schulenberg
8b80ec3e1a
startup: allow negative line and column numbers on the command line
...
They can be given at the prompt, so it's better to accept them on the
command line too.
2017-06-23 10:25:12 +02:00
Benno Schulenberg
a71a2f9a0c
startup: don't mark the buffer as modified when nothing was read
2017-06-23 09:51:58 +02:00
Benno Schulenberg
56ce5f2ba8
tweaks: rename a function and a variable, to better match what they do
...
Also improve some comments.
2017-06-23 09:50:48 +02:00
Benno Schulenberg
5ebdd3fe6e
tweaks: reduce the scope of three variables, and rename them besides
2017-06-23 09:00:15 +02:00
Benno Schulenberg
426e6d37c5
startup: don't try placing the cursor when reading standard input failed
...
And rename the function while there anyway.
2017-06-23 08:30:24 +02:00
Benno Schulenberg
4dd9aadf8a
startup: allow positioning the cursor also when reading standard input
...
A recent change (8dffb00f
) removed this ability. This change restores
it, and also allows reading from standard input multiple times -- maybe
not useful, but it works.
2017-06-20 11:22:57 +02:00
Benno Schulenberg
5ecd81bd19
tweaks: rename a variable, and frob a couple of comments
...
Also, conditionalize a statement that is only effective when
multiple file buffers are available.
2017-06-18 21:37:42 +02:00
Benno Schulenberg
b4a955512e
docs: spell "title bar" and "status bar" correctly
2017-06-18 20:09:30 +02:00
Benno Schulenberg
33c7a4ca95
tweaks: adjust indentation after preceding changes
...
Also, shorten two variable names.
2017-06-18 11:29:09 +02:00
Benno Schulenberg
40d34862fd
tweaks: reduce the scope of two variables, and rename them too
...
This reduction is possible since the routine no longer loops when
it encounters a +NUMBER argument.
2017-06-18 11:06:58 +02:00
Benno Schulenberg
bee670424e
tweaks: elide a variable
2017-06-18 11:00:21 +02:00
Benno Schulenberg
8dffb00fd9
startup: always open with the file that was mentioned first
...
Also when a dash is the first "file" mentioned on the command line,
nano should show this buffer at startup and not the next.
This fixes https://savannah.gnu.org/bugs/?51207 .
2017-06-18 10:49:51 +02:00
Benno Schulenberg
403e87c0a0
docs: avoid a double "see" for cross references in the HTML manual
...
This fixes https://savannah.gnu.org/bugs/?51208 .
2017-06-08 16:25:23 +02:00
Benno Schulenberg
942bb39547
startup: don't crash when opening standard input would fail
...
This fixes https://savannah.gnu.org/bugs/?51206 .
2017-06-08 11:28:49 +02:00