diff options
author | Graeme Geldenhuys <graeme@mastermaths.co.za> | 2010-04-06 09:11:22 +0200 |
---|---|---|
committer | Graeme Geldenhuys <graeme@mastermaths.co.za> | 2010-04-06 09:11:22 +0200 |
commit | e54312ce0df4f6907dd1b09fe0db1c3dbda7d23d (patch) | |
tree | fa29035d3dc56da714093b6b34ac5a96fe04489d /src | |
parent | 68635efa545d1ab3f5fd6b530ce314efdd8dad4c (diff) | |
download | fpGUI-e54312ce0df4f6907dd1b09fe0db1c3dbda7d23d.tar.xz |
memo: Fixed deletion of selected lines.
Thanks to JoshyFun <joshyfun@gmail.com> for suggestions.
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/fpg_memo.pas | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/fpg_memo.pas b/src/gui/fpg_memo.pas index 3e972430..bbc4b4ca 100644 --- a/src/gui/fpg_memo.pas +++ b/src/gui/fpg_memo.pas @@ -403,8 +403,9 @@ begin SetLineText(selsl, ls); end; - for n := selsl to selel do - FLines.Delete(n); + //delete moves lines up, so delete same line number over and over. + for n := (selsl+1) to selel do + FLines.Delete(selsl+1); FCursorPos := selsp; FCursorLine := selsl; |