[geany/geany] f318b2: join_lines: Remove some obsolete code from `reflow_lines`.
Eugene Arshinov
git-noreply at xxxxx
Sat Feb 25 15:48:37 UTC 2012
Branch: refs/heads/master
Author: Eugene Arshinov <earshinov at gmail.com>
Committer: Eugene Arshinov <earshinov at gmail.com>
Date: Sat, 25 Feb 2012 15:48:37
Commit: f318b2cca0fa9fa024d3dddb908c1e490ab78a0e
https://github.com/geany/geany/commit/f318b2cca0fa9fa024d3dddb908c1e490ab78a0e
Log Message:
-----------
join_lines: Remove some obsolete code from `reflow_lines`.
The code joined current line with the next one when no text is selected.
For "Join lines" command this behaviour is wrong; for "Reflow paragraph"
the case is already handled outside the `reflow_lines` function.
Modified Paths:
--------------
src/keybindings.c
Modified: src/keybindings.c
4 files changed, 0 insertions(+), 4 deletions(-)
===================================================================
@@ -2019,10 +2019,6 @@ static void join_lines(GeanyEditor *editor)
end = sci_get_line_from_position(editor->sci,
sci_get_selection_end(editor->sci));
- /* if there is only one line in selection, join it with the following one */
- if (end == start)
- end = start + 1;
-
/*
* remove trailing spaces for every line except the last one
* so that these spaces won't appear within text after joining
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: TBD).
More information about the Commits
mailing list