- 02 Jul, 2017 2 commits
-
-
Benno Schulenberg authored
And rename a third variable, to match another in its style.
-
Benno Schulenberg authored
-
- 29 May, 2017 1 commit
-
-
Benno Schulenberg authored
Achieve this by making the suppression flag global, so that we can just reset it instead of making an improper call of do_cursorpos(). This fixes the secondary part of https://savannah.gnu.org/bugs/?51134.
-
- 19 May, 2017 1 commit
-
-
Benno Schulenberg authored
-
- 11 May, 2017 1 commit
-
-
Benno Schulenberg authored
When spotlighting the string to be replaced, placewewant isn't valid, so tell place_the_cursor() to ignore its value to avoid the cursor getting mistakenly placed at the beginning of the next row. This fixes https://savannah.gnu.org/bugs/?50997 . Reported-by:
David Lawrence Ramsey <pooka109@gmail.com>
-
- 25 Apr, 2017 1 commit
-
-
Benno Schulenberg authored
And in the process transform the token DISABLE_HELP to ENABLE_HELP.
-
- 19 Apr, 2017 2 commits
-
-
Benno Schulenberg authored
Call something a buffer when it refers to a linked list of linestructs, and call something a linestruct when it is a struct that describes a single line.
-
Benno Schulenberg authored
Also avoid an unused-variable warning, and trim a useless assert.
-
- 17 Apr, 2017 2 commits
-
-
Benno Schulenberg authored
-
Benno Schulenberg authored
Because nothing gets reset to zero or to some initial value.
-
- 10 Apr, 2017 2 commits
-
-
Benno Schulenberg authored
This fixes https://savannah.gnu.org/bugs/?47131.
-
Benno Schulenberg authored
When the user chooses not to open a file that some message refers to, remove all messages for that file from the linting results, so the user does not get asked about that same file again. This fixes https://savannah.gnu.org/bugs/?47130.
-
- 09 Apr, 2017 1 commit
-
-
Benno Schulenberg authored
The interval 2013-2017 for the Free Software Foundation is valid because in those years there were releases with changes by either Chris or David, and the GNU maintainers guide advises to mention a new year in all files of a package, not just in the ones that actually changed, and be done with it for the rest of the year.
-
- 06 Apr, 2017 1 commit
-
-
Benno Schulenberg authored
When Enter is pressed while the cursor is exactly on the current indent width, remove the blank characters on that line to avoid creating a line that consists only of trailing whitespace. (When Enter is pressed somewhere in the middle of the blanks, however, the whitespace is preserved.) Suggested-by:
Florian Zeitz <florob@babelmonkeys.de>
-
- 04 Apr, 2017 2 commits
-
-
Benno Schulenberg authored
Verify at startup that the number is not too small.
-
Benno Schulenberg authored
Rename some variables in the process, and remove two cluttering asserts.
-
- 29 Mar, 2017 1 commit
-
-
Benno Schulenberg authored
-
- 22 Mar, 2017 3 commits
-
-
David Lawrence Ramsey authored
In do_int_spell_fix(), spell-checking text may change firstcolumn if the next match is offscreen, and spell-checking text after that will not change it back. In order to keep the viewport unchanged, we have to save and restore not just edittop, but firstcolumn as well.
-
David Lawrence Ramsey authored
In do_justify(), justifying text may change firstcolumn if the paragraph ends offscreen, and unjustifying the text again will not change it back. In order to keep the viewport unchanged, we have to save and restore not just edittop, but firstcolumn as well.
-
David Lawrence Ramsey authored
Since all lines can be partially scrolled off the screen now (except for the top line of the edit window, which is forthcoming), ensure_line_is_visible() is no longer needed.
-
- 20 Mar, 2017 1 commit
-
-
Benno Schulenberg authored
Most of these variables are freed moments later -- reallocating them is thus a waste of time.
-
- 06 Mar, 2017 1 commit
-
-
Mike Frysinger authored
Now that we pull in the gnulib regex module, we can assume it exists.
-
- 01 Mar, 2017 2 commits
-
-
Benno Schulenberg authored
-
Benno Schulenberg authored
The mark only needs to be off when calling replace_marked_buffer(), because this indirectly calls ingraft_buffer(), which fiddles with the end points if the mark is on.
-
- 28 Feb, 2017 4 commits
-
-
Benno Schulenberg authored
This fixes https://savannah.gnu.org/bugs/?50415.
-
David Lawrence Ramsey authored
Replace partitioning with calls to extract_buffer() and ingraft_buffer(). In addition to pasting the unjustified text back into the buffer at current[current_x], ingraft_buffer() also deals with renumbering and updating totsize, so do_justify() doesn't need to do those anymore when unjustifying.
-
David Lawrence Ramsey authored
With read_file() revamped, it now uses partition_filestruct() indirectly via ingraft_buffer(), so we can't use partition_filestruct() to replace marked text in the alternate spell checker anymore without segfaulting. Add the new function replace_marked_buffer() to accomplish this instead. Based on replace_buffer(), it uses extract_buffer() to throw away the marked un-spell-checked text, and then uses read_file() to insert the spell-checked text at the position where the mark was. Accordingly, remove unneeded partitioning and related stuff from do_alt_speller(). Besides pasting the file into the buffer at current[current_x], ingraft_buffer() also deals with renumbering, updating totsize, and handling a magicline, so do_alt_speller() doesn't need to do those anymore.
-
David Lawrence Ramsey authored
-
- 25 Feb, 2017 2 commits
-
-
Benno Schulenberg authored
-
Benno Schulenberg authored
In this last loop of break_line(), the pointer 'line' is one step ahead of the index 'lastblank'. So the loop should first add the length of the preceding character to 'lastblank' before determining the length of the current character (and using this to advance 'line').
-
- 24 Feb, 2017 5 commits
-
-
Benno Schulenberg authored
(There is something wrong in the last loop: line is one character ahead of lastblank, but the current character length is added to both of them. It thus assumes that all blank characters are the same number of bytes. For spaces and tabs this works fine. But for more exotic blanks...)
-
Benno Schulenberg authored
Also, remove an assert and adjust some comments.
-
David Lawrence Ramsey authored
-
David Lawrence Ramsey authored
Also, rename a parameter to be less cryptic, and remove an entire condition because the relevant block will never be reached when getting called from the help routines: if blank_loc is negative, the function will have bailed out in the preceding if.
-
Benno Schulenberg authored
-
- 22 Feb, 2017 1 commit
-
-
Benno Schulenberg authored
This fixes https://savannah.gnu.org/bugs/?50379.
-
- 17 Feb, 2017 1 commit
-
-
David Lawrence Ramsey authored
The name "filestruct" was a mistake. What was meant was: buffer -- a linked list of structs that each describe a line.
-
- 16 Feb, 2017 1 commit
-
-
Benno Schulenberg authored
When the marked region covers only a single line (or a part of it), its new endpoint is not simply the length of the last line of the spell-checked text, but instead the old endpoint plus the /change/ in length. This fixes https://savannah.gnu.org/bugs/?50316 . Reported-by:
David Lawrence Ramsey <pooka109@gmail.com>
-
- 10 Feb, 2017 2 commits
-
-
Benno Schulenberg authored
If we're somewhere deep into the file and do a spell check, and the first misspelled word happens to be right there, onscreen already, then this word does not need to be centered -- it /should/ not be centered. We should scroll only when necessary.
-
Benno Schulenberg authored
Just like when spell-checking, there is no need to wrap around when doing replacements in a region, because a region cannot straddle the buffer's edges. This is the proper fix for https://savannah.gnu.org/bugs/?50158, and fixes https://savannah.gnu.org/bugs/?50273.
-